mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test_runner: dont set exit code on todo tests
PR-URL: https://github.com/nodejs/node/pull/48929 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
1 parent
7e714e6497
commit
00c70e12f7
5 files changed
+39
-7
No files matched your search
@@ -50,6 +50,19 @@ if (process.argv[2] === 'child') {
|
||||
assert.strictEqual(child.status, 0);
|
||||
assert.strictEqual(child.signal, null);
|
||||
|
||||
|
||||
child = spawnSync(process.execPath, [
|
||||
'--test',
|
||||
fixtures.path('test-runner', 'todo_exit_code.js'),
|
||||
]);
|
||||
assert.strictEqual(child.status, 0);
|
||||
assert.strictEqual(child.signal, null);
|
||||
const stdout = child.stdout.toString();
|
||||
assert.match(stdout, /# tests 3/);
|
||||
assert.match(stdout, /# pass 0/);
|
||||
assert.match(stdout, /# fail 0/);
|
||||
assert.match(stdout, /# todo 3/);
|
||||
|
||||
child = spawnSync(process.execPath, [__filename, 'child', 'fail']);
|
||||
assert.strictEqual(child.status, 1);
|
||||
assert.strictEqual(child.signal, null);
|
||||
|
||||
Reference in new issue
Block a user