-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_runner: emit test-only diagnostic warning #46540
test_runner: emit test-only diagnostic warning #46540
Conversation
Review requested:
|
3ee8044
to
e9bf7c1
Compare
8292f1b
to
514fd0b
Compare
514fd0b
to
5669292
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-only
CLI flag.