-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # 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 <cjihrig@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#46540 Fixes: nodejs#46448 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#46540 Fixes: nodejs#46448 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Fixes: #46448
This PR:
{ only: true }
orrunOnlyTests(true)
without the--test-only
CLI flag.