test_runner: fix todo and skip messages on spec-reporter#47525
test_runner: fix todo and skip messages on spec-reporter#47525ErickWendel wants to merge 1 commit intonodejs:mainfrom
Conversation
|
Review requested:
|
b475dd8 to
cecf5df
Compare
|
@MoLow @cjihrig hey there! Do you know why my changes are not being affected when running it with the --test flag? Without it, the result is: ./node erick-test/index.test.js
▶ my test
□ my todo (0.186458ms)
﹣ my skip (0.069583ms) # SKIP
✔ hello world (0.042875ms)
▶ my test (1.454833ms)
ℹ tests 3
ℹ suites 1
ℹ pass 1
ℹ fail 0
ℹ cancelled 0
ℹ skipped 1
ℹ todo 1
ℹ duration_ms 7.476542with it is: ./node --test erick-test/index.test.js
▶ my test
▶ my todo
▶ my skip
✔ hello world (0.03225ms)
✔ my test (1.0185ms)
ℹ tests 1
ℹ suites 1
ℹ pass 1
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 65.784083 |
|
My guess is this is a bug in the TAP parser. |
|
I think, we have to add cases for Also, tests are failing locally. |
| ArrayPrototypePush, | ||
| ArrayPrototypeShift, | ||
| } = primordials; | ||
| const console = require('console') |
| case 'test:pass': | ||
| return this.#handleTestReportEvent(type, data); | ||
| case 'test:skip': | ||
| return this.#handleTestReportEvent(type, data); | ||
| case 'test:todo': | ||
| return this.#handleTestReportEvent(type, data); |
There was a problem hiding this comment.
| case 'test:pass': | |
| return this.#handleTestReportEvent(type, data); | |
| case 'test:skip': | |
| return this.#handleTestReportEvent(type, data); | |
| case 'test:todo': | |
| return this.#handleTestReportEvent(type, data); | |
| case 'test:pass': | |
| case 'test:skip': | |
| case 'test:todo': | |
| return this.#handleTestReportEvent(type, data); |
| skip(nesting, file, testNumber, name, details, directive) { | ||
| this.#emit('test:skip', { __proto__: null, name, nesting, file, testNumber, details, ...directive }); | ||
| } | ||
|
|
||
| todo(nesting, file, testNumber, name, details, directive) { | ||
| this.#emit('test:todo', { __proto__: null, name, nesting, file, testNumber, details, ...directive }); | ||
| } | ||
|
|
||
| ok(nesting, file, testNumber, name, details, directive) { |
|
Also, here what I found while debugging this, if your try to pass args to |
this is a draft my friend! Not supposed to be reviewed yet |
also do we really need new |
|
@ErickWendel this should now work (after rebasing) the same with and without |
gonna check it out! |
No description provided.