2014-09-28 16:55:01 -04:00
|
|
|
import 'package:guinness/guinness.dart';
|
|
|
|
import 'package:unittest/unittest.dart' as unit;
|
|
|
|
|
2015-03-13 06:10:11 -04:00
|
|
|
import 'package:angular2/src/test_lib/test_lib.dart' show testSetup;
|
|
|
|
|
2014-09-28 16:55:01 -04:00
|
|
|
main() {
|
|
|
|
unit.filterStacks = true;
|
|
|
|
unit.formatStacks = false;
|
2015-08-28 14:45:39 -04:00
|
|
|
unit.unittestConfiguration.timeout = new Duration(milliseconds: 1000);
|
2014-09-28 16:55:01 -04:00
|
|
|
|
|
|
|
_printWarnings();
|
|
|
|
|
|
|
|
guinness.autoInit = false;
|
|
|
|
guinness.initSpecs();
|
2015-03-13 06:10:11 -04:00
|
|
|
|
|
|
|
testSetup();
|
2014-09-28 16:55:01 -04: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 06:10:11 -04:00
|
|
|
}
|