| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f5cd125 commit b7bc635
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -952,7 +952,7 @@ class Suite extends Test { | |||
| 952 | 952 | constructor(options) { | |
| 953 | 953 | super(options); | |
| 954 | 954 | ||
| 955 | - if (testNamePatterns !== null && !options.skip && !options.todo) { | ||
| 955 | + if (testNamePatterns !== null && !options.skip) { | ||
| 956 | 956 | this.fn = options.fn || this.fn; | |
| 957 | 957 | this.skipped = false; | |
| 958 | 958 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -65,3 +65,13 @@ describe('no', function() { | |||
| 65 | 65 | it('yes', () => {}); | |
| 66 | 66 | }); | |
| 67 | 67 | }); | |
| 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 | + }); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -171,12 +171,46 @@ ok 15 - no | |||
| 171 | 171 | duration_ms: * | |
| 172 | 172 | type: 'suite' | |
| 173 | 173 | ... | |
| 174 | - 1..15 | ||
| 175 | - # tests 21 | ||
| 176 | - # suites 10 | ||
| 177 | - # pass 13 | ||
| 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 | + ... | ||
| 208 | + 1..16 | ||
| 209 | + # tests 25 | ||
| 210 | + # suites 12 | ||
| 211 | + # pass 15 | ||
| 178 | 212 | # fail 0 | |
| 179 | 213 | # cancelled 0 | |
| 180 | - # skipped 8 | ||
| 214 | + # skipped 10 | ||
| 181 | 215 | # todo 0 | |
| 182 | 216 | # duration_ms * | |
| Back | FazBrowse Home | New Git URL |
0 commit comments