2014-09-28 16:55:01 -04:00
|
|
|
import 'package:guinness/guinness.dart';
|
|
|
|
import 'package:unittest/unittest.dart' as unit;
|
|
|
|
|
2015-10-13 03:29:13 -04:00
|
|
|
import 'package:angular2/src/testing/testing_internal.dart' show testSetup;
|
2015-03-13 06:10:11 -04:00
|
|
|
|
2014-09-28 16:55:01 -04:00
|
|
|
main() {
|
|
|
|
unit.filterStacks = true;
|
|
|
|
unit.formatStacks = false;
|
2015-09-02 18:07:31 -04:00
|
|
|
unit.unittestConfiguration.timeout = new Duration(milliseconds: 2000);
|
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
|
|
|
}
|