test_runner: emit test-only diagnostic warning#46540
test_runner: emit test-only diagnostic warning#46540nodejs-github-bot merged 1 commit intonodejs:mainfrom
Conversation
|
Review requested:
|
3ee8044 to
e9bf7c1
Compare
8292f1b to
514fd0b
Compare
514fd0b to
5669292
Compare
MoLow
left a comment
There was a problem hiding this comment.
LGTM, But I think we should emit a similar diagnostic when calling runOnly when no flag
@MoLow Are you referring to this scenario with // running without the --test-only flag
const { test } = require('node:test');
test('top level test', async (t) => {
t.runOnly(true);
await t.test('this subtest is run');
}); |
I think @MoLow is saying to add the diagnostic when |
A follow-up PR is ok |
|
@richiemccoll this PR requires a rebase |
5669292 to
7696218
Compare
|
Landed in c90ea93 |
PR-URL: nodejs#46540 Fixes: nodejs#46448 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#46540 Fixes: nodejs#46448 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#46540 Fixes: nodejs#46448 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #46540 Backport-PR-URL: #46839 Fixes: #46448 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #46540 Backport-PR-URL: #46839 Fixes: #46448 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #46540 Fixes: #46448 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #46540 Fixes: #46448 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
Fixes: #46448
This PR:
{ only: true }orrunOnlyTests(true)without the--test-onlyCLI flag.