2014-09-28 16:55:01 -04:00
|
|
|
import 'package:guinness/guinness.dart';
|
|
|
|
import 'package:unittest/unittest.dart' as unit;
|
|
|
|
|
|
|
|
main() {
|
|
|
|
unit.filterStacks = true;
|
|
|
|
unit.formatStacks = false;
|
2015-02-25 19:09:33 -05:00
|
|
|
unit.unittestConfiguration.timeout = new Duration(milliseconds: 100);
|
2014-09-28 16:55:01 -04:00
|
|
|
|
|
|
|
_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");
|
|
|
|
}
|
|
|
|
}
|