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

test_runner: run top level tests in a microtask #52092

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Mar 15, 2024

This commit updates the test harness to prevent top level tests from executing immediately. This allows certain config data, such as filtering options, to be discovered before running the tests.

This commit updates the test harness to prevent top level
tests from executing immediately. This allows certain config
data, such as filtering options, to be discovered before running
the tests.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/test_runner
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Mar 15, 2024
@MoLow
Copy link
Member

MoLow commented Mar 15, 2024

Have you compared this with converting the root test to be a suite?

@cjihrig
Copy link
Contributor Author

cjihrig commented Mar 15, 2024

I have not. This seems like a pretty noninvasive change, and I do like that the harness can easily enable/disable running tests. I'm fine with either approach - I just think it's time to make the change.

@cjihrig cjihrig added the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 17, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Mar 17, 2024
@nodejs-github-bot nodejs-github-bot merged commit 05db979 into nodejs:main Mar 17, 2024
59 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 05db979

@cjihrig cjihrig deleted the start-tests branch March 17, 2024 04:51
rdw-msft pushed a commit to rdw-msft/node that referenced this pull request Mar 26, 2024
This commit updates the test harness to prevent top level
tests from executing immediately. This allows certain config
data, such as filtering options, to be discovered before running
the tests.

PR-URL: nodejs#52092
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
marco-ippolito pushed a commit that referenced this pull request May 2, 2024
This commit updates the test harness to prevent top level
tests from executing immediately. This allows certain config
data, such as filtering options, to be discovered before running
the tests.

PR-URL: #52092
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
marco-ippolito pushed a commit that referenced this pull request May 23, 2024
This commit updates the test harness to prevent top level
tests from executing immediately. This allows certain config
data, such as filtering options, to be discovered before running
the tests.

PR-URL: #52092
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.
4 participants