Commit 4ba9f45 1 parent 6f4d601 commit 4ba9f45 Copy full SHA for 4ba9f45
File tree 3 files changed +52
-8
lines changed
test/fixtures/test-runner/output
3 files changed +52
-8
lines changed Original file line number Diff line number Diff line change @@ -984,7 +984,7 @@ class Suite extends Test {
984
984
constructor ( options ) {
985
985
super ( options ) ;
986
986
987
- if ( testNamePatterns !== null && ! options . skip && ! options . todo ) {
987
+ if ( testNamePatterns !== null && ! options . skip ) {
988
988
this . fn = options . fn || this . fn ;
989
989
this . skipped = false ;
990
990
}
Original file line number Diff line number Diff line change @@ -66,6 +66,16 @@ describe('no', function() {
66
66
} ) ;
67
67
} ) ;
68
68
69
+ describe ( 'no with todo' , { todo : true } , ( ) => {
70
+ it ( 'no' , ( ) => { } ) ;
71
+ it ( 'yes' , ( ) => { } ) ;
72
+
73
+ describe ( 'maybe' , function ( ) {
74
+ it ( 'no' , ( ) => { } ) ;
75
+ it ( 'yes' , ( ) => { } ) ;
76
+ } ) ;
77
+ } ) ;
78
+
69
79
describe ( 'DescribeForMatchWithAncestors' , ( ) => {
70
80
it ( 'NestedTest' , ( ) => common . mustNotCall ( ) ) ;
71
81
Original file line number Diff line number Diff line change @@ -171,6 +171,40 @@ ok 15 - no
171
171
duration_ms: *
172
172
type: 'suite'
173
173
...
174
+ # Subtest: no with todo
175
+ # Subtest: no
176
+ ok 1 - no # SKIP test name does not match pattern
177
+ ---
178
+ duration_ms: *
179
+ ...
180
+ # Subtest: yes
181
+ ok 2 - yes
182
+ ---
183
+ duration_ms: *
184
+ ...
185
+ # Subtest: maybe
186
+ # Subtest: no
187
+ ok 1 - no # SKIP test name does not match pattern
188
+ ---
189
+ duration_ms: *
190
+ ...
191
+ # Subtest: yes
192
+ ok 2 - yes
193
+ ---
194
+ duration_ms: *
195
+ ...
196
+ 1..2
197
+ ok 3 - maybe
198
+ ---
199
+ duration_ms: *
200
+ type: 'suite'
201
+ ...
202
+ 1..3
203
+ ok 16 - no with todo # TODO test name does not match pattern
204
+ ---
205
+ duration_ms: *
206
+ type: 'suite'
207
+ ...
174
208
# Subtest: DescribeForMatchWithAncestors
175
209
# Subtest: NestedTest
176
210
ok 1 - NestedTest # SKIP test name does not match pattern
@@ -190,7 +224,7 @@ ok 15 - no
190
224
type: 'suite'
191
225
...
192
226
1..2
193
- ok 16 - DescribeForMatchWithAncestors
227
+ ok 17 - DescribeForMatchWithAncestors
194
228
---
195
229
duration_ms: *
196
230
type: 'suite'
@@ -202,17 +236,17 @@ ok 16 - DescribeForMatchWithAncestors
202
236
duration_ms: *
203
237
...
204
238
1..1
205
- ok 17 - DescribeForMatchWithAncestors
239
+ ok 18 - DescribeForMatchWithAncestors
206
240
---
207
241
duration_ms: *
208
242
type: 'suite'
209
243
...
210
- 1..17
211
- # tests 24
212
- # suites 13
213
- # pass 14
244
+ 1..18
245
+ # tests 28
246
+ # suites 15
247
+ # pass 16
214
248
# fail 0
215
249
# cancelled 0
216
- # skipped 10
250
+ # skipped 12
217
251
# todo 0
218
252
# duration_ms *
You can’t perform that action at this time.
0 commit comments