This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree 4 files changed +31
-3
lines changed
4 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ packages:
40
40
guinness:
41
41
description: guinness
42
42
source: hosted
43
- version: "0.1.13 "
43
+ version: "0.1.9 "
44
44
html5lib:
45
45
description: html5lib
46
46
source: hosted
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ dependencies:
27
27
web_components : ' >=0.3.3 <0.4.0'
28
28
dev_dependencies :
29
29
benchmark_harness : ' >=1.0.0 <2.0.0'
30
- guinness : ' >=0.1.13 <0.2.0'
30
+ guinness : ' >=0.1.9 <0.2.0'
31
31
mock : ' >=0.10.0 <0.12.0'
32
32
protractor : ' 0.0.5'
33
33
unittest : ' >=0.10.1 <0.12.0'
Original file line number Diff line number Diff line change @@ -111,7 +111,18 @@ echo BROWSER=$BROWSERS
111
111
$NGDART_BASE_DIR /node_modules/jasmine-node/bin/jasmine-node playback_middleware/spec/ &&
112
112
node " node_modules/karma/bin/karma" start karma.conf \
113
113
--reporters=junit,dots --port=8765 --runner-port=8766 \
114
- --browsers=$BROWSERS --single-run --no-colors
114
+ --browsers=$BROWSERS --single-run --no-colors 2>&1 | tee karma-output.log
115
+
116
+ if grep -q " WARN: iit" karma-output.log; then
117
+ echo " ERROR: iit caused some tests to be excluded"
118
+ exit 1
119
+ fi
120
+
121
+ if grep -q " WARN: ddescribe" karma-output.log; then
122
+ echo " ERROR: ddescribe caused some tests to be excluded"
123
+ exit 1
124
+ fi
125
+
115
126
116
127
117
128
echo ' -------------------------'
Original file line number Diff line number Diff line change @@ -4,5 +4,22 @@ import 'package:unittest/unittest.dart' as unit;
4
4
main () {
5
5
unit.filterStacks = true ;
6
6
unit.formatStacks = false ;
7
+
8
+ _printWarnings ();
9
+
10
+ guinness.autoInit = false ;
7
11
guinness.initSpecs ();
8
12
}
13
+
14
+ _printWarnings () {
15
+ final info = guinness.suiteInfo ();
16
+
17
+ if (info.activeIts.any ((it) => it.exclusive)) {
18
+ print ("WARN: iit caused some tests to be excluded" );
19
+ }
20
+
21
+ if (info.exclusiveDescribes.isNotEmpty) {
22
+ print ("WARN: ddescribe caused some tests to be excluded" );
23
+ }
24
+ }
25
+
You can’t perform that action at this time.
0 commit comments