Skip to content
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

Run flagged subtests only also when the parent is not flagged #51856

Closed
jhonyrdesouza opened this issue Feb 23, 2024 · 1 comment
Closed

Run flagged subtests only also when the parent is not flagged #51856

jhonyrdesouza opened this issue Feb 23, 2024 · 1 comment
Labels
test_runner Issues and PRs related to the test runner subsystem.

Comments

@jhonyrdesouza
Copy link

jhonyrdesouza commented Feb 23, 2024

Version

No response

Platform

No response

Subsystem

No response

What steps will reproduce the bug?

Tt's actually not a bug, but a DX improvement.

How often does it reproduce? Is there a required condition?

I would like the called test to want to execute just this, but to do this the parent must also have the {only:true} option.

test('want to run the subtests here', async (t) => {
  t.test('want to run only this', { only: true });
  t.test('dont run that');
});

test('this test is not run');

What is the expected behavior? Why is that the expected behavior?

Parent tests should also be run as they have been flagged.

What do you see instead?

No test execution.

Additional information

No other information.

@MoLow MoLow added the test_runner Issues and PRs related to the test runner subsystem. label Feb 25, 2024
@MoLow
Copy link
Member

MoLow commented Feb 25, 2024

this seems to duplicate #47945

@MoLow MoLow closed this as completed Feb 25, 2024
@MoLow MoLow reopened this Feb 25, 2024
@MoLow MoLow closed this as not planned Won't fix, can't repro, duplicate, stale Feb 25, 2024
@MoLow MoLow closed this as completed Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test_runner Issues and PRs related to the test runner subsystem.
Projects
None yet
Development

No branches or pull requests

2 participants