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 @@ -36,7 +36,7 @@ packages:
36
36
guinness:
37
37
description: guinness
38
38
source: hosted
39
- version: "0.1.5 "
39
+ version: "0.1.9 "
40
40
html5lib:
41
41
description: html5lib
42
42
source: hosted
Original file line number Diff line number Diff line change @@ -29,4 +29,4 @@ dev_dependencies:
29
29
benchmark_harness : ' >=1.0.0'
30
30
unittest : ' >=0.10.1 <0.12.0'
31
31
mock : ' >=0.10.0 <0.12.0'
32
- guinness : ' >=0.1.3 <0.2.0'
32
+ guinness : ' >=0.1.9 <0.2.0'
Original file line number Diff line number Diff line change @@ -98,7 +98,18 @@ echo BROWSER=$BROWSERS
98
98
$NGDART_BASE_DIR /node_modules/jasmine-node/bin/jasmine-node playback_middleware/spec/ &&
99
99
node " node_modules/karma/bin/karma" start karma.conf \
100
100
--reporters=junit,dots --port=8765 --runner-port=8766 \
101
- --browsers=$BROWSERS --single-run --no-colors
101
+ --browsers=$BROWSERS --single-run --no-colors 2>&1 | tee karma-output.log
102
+
103
+ if grep -q " WARN: iit" karma-output.log; then
104
+ echo " ERROR: iit caused some tests to be excluded"
105
+ exit 1
106
+ fi
107
+
108
+ if grep -q " WARN: ddescribe" karma-output.log; then
109
+ echo " ERROR: ddescribe caused some tests to be excluded"
110
+ exit 1
111
+ fi
112
+
102
113
103
114
echo ' -------------------------'
104
115
echo ' -- DOCS: Generate Docs --'
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