24 lines
		
	
	
		
			517 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			517 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| 
								 | 
							
								import 'package:guinness/guinness.dart';
							 | 
						||
| 
								 | 
							
								import 'package:unittest/unittest.dart' as unit;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								main() {
							 | 
						||
| 
								 | 
							
								  unit.filterStacks = true;
							 | 
						||
| 
								 | 
							
								  unit.formatStacks = false;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  _printWarnings();
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  guinness.autoInit = false;
							 | 
						||
| 
								 | 
							
								  guinness.initSpecs();
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								_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");
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 |