| 
									
										
										
										
											2014-09-28 13:55:01 -07:00
										 |  |  | import 'package:guinness/guinness.dart'; | 
					
						
							|  |  |  | import 'package:unittest/unittest.dart' as unit; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-03-13 11:10:11 +01:00
										 |  |  | import 'package:angular2/src/test_lib/test_lib.dart' show testSetup; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-09-28 13:55:01 -07:00
										 |  |  | main() { | 
					
						
							|  |  |  |   unit.filterStacks = true; | 
					
						
							|  |  |  |   unit.formatStacks = false; | 
					
						
							| 
									
										
										
										
											2015-02-25 16:09:33 -08:00
										 |  |  |   unit.unittestConfiguration.timeout = new Duration(milliseconds: 100); | 
					
						
							| 
									
										
										
										
											2014-09-28 13:55:01 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |   _printWarnings(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   guinness.autoInit = false; | 
					
						
							|  |  |  |   guinness.initSpecs(); | 
					
						
							| 
									
										
										
										
											2015-03-13 11:10:11 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   testSetup(); | 
					
						
							| 
									
										
										
										
											2014-09-28 13:55:01 -07:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | _printWarnings () { | 
					
						
							|  |  |  |   final info = guinness.suiteInfo(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   if (info.activeIts.any((it) => it.exclusive)) { | 
					
						
							|  |  |  |     print("WARN: iit caused some tests to be excluded"); | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   if (info.exclusiveDescribes.isNotEmpty) { | 
					
						
							|  |  |  |     print("WARN: ddescribe caused some tests to be excluded"); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2015-03-13 11:10:11 +01:00
										 |  |  | } |