Skip to content

test_runner: export describe and it - #43420

Closed
MoLow wants to merge 24 commits into
nodejs:mainfrom
MoLow:test-runner-describe-it
Closed

test_runner: export describe and it#43420
MoLow wants to merge 24 commits into
nodejs:mainfrom
MoLow:test-runner-describe-it

Conversation

@MoLow

@MoLow MoLow commented Jun 14, 2022

Copy link
Copy Markdown
Member

Refs: #43415

also, once #43403 is handled - it can probably be a good idea to implement/export a top-level implementation of before, beforeEach, after, afterEach where the parent test is found using executionAsyncId - the same way it is done in this PR

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. test_runner Issues and PRs related to the test runner subsystem. labels Jun 14, 2022
@MoLow MoLow changed the title test_runner: expose describe and it test_runner: export describe and it Jun 14, 2022
@MoLow

MoLow commented Jun 14, 2022

Copy link
Copy Markdown
Member Author

I would love to recieve initial feedback, before I start working on tests and documentation
CC. @benjamingr

@benjamingr

Copy link
Copy Markdown
Member

Initial feedback is positive :) @nodejs/test_runner

Comment thread lib/internal/test_runner/harness.js Outdated
@MoLow

MoLow commented Jun 14, 2022

Copy link
Copy Markdown
Member Author

cc @Linkgoron

@MoLow
MoLow force-pushed the test-runner-describe-it branch from e9ea260 to 6a8249e Compare June 14, 2022 19:24
@MoLow

MoLow commented Jun 15, 2022

Copy link
Copy Markdown
Member Author

@cjihrig can you please take a look?

@MoLow
MoLow force-pushed the test-runner-describe-it branch from 6a8249e to 561565d Compare June 15, 2022 13:38
Comment thread lib/internal/test_runner/harness.js Outdated
Comment thread lib/internal/test_runner/harness.js Outdated
Comment thread lib/internal/test_runner/test.js Outdated
Comment thread lib/internal/test_runner/test.js Outdated
Comment thread lib/internal/test_runner/test.js Outdated

@aduh95 aduh95 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we would need to also update the docs.

Comment thread lib/internal/test_runner/harness.js Outdated
Comment thread lib/internal/test_runner/test.js Outdated
Comment thread lib/internal/test_runner/test.js Outdated
Comment thread lib/internal/test_runner/utils.js Outdated
@MoLow

MoLow commented Jun 19, 2022

Copy link
Copy Markdown
Member Author

@benjamingr AFAIK this pr is ready for review and landing, if you can please review and ping whom you think might be relevant

@MoLow
MoLow requested a review from ljharb June 19, 2022 12:17
@benjamingr benjamingr added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 19, 2022
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 19, 2022
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@Linkgoron Linkgoron added request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Jun 26, 2022
@benjamingr benjamingr added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 26, 2022
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 26, 2022
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@benjamingr

Copy link
Copy Markdown
Member

@nodejs/build can someone with access to the build machines take a look at the failure?

Comment thread doc/api/test.md Outdated
Comment thread doc/api/test.md Outdated
Comment thread doc/api/test.md Outdated
Comment thread doc/api/test.md Outdated
Comment thread doc/api/test.md Outdated
Comment thread doc/api/test.md Outdated
Comment thread lib/internal/test_runner/harness.js Outdated
Comment thread lib/internal/test_runner/test.js Outdated
Comment thread doc/api/test.md Outdated
Comment thread doc/api/test.md Outdated
@MoLow

MoLow commented Jun 26, 2022

Copy link
Copy Markdown
Member Author

@nodejs/build can someone with access to the build machines take a look at the failure?

this seems to be broken for a while https://ci.nodejs.org/job/node-cross-compile/

@F3n67u

F3n67u commented Jun 27, 2022

Copy link
Copy Markdown
Contributor

FYI,@richardlau is investigating the node-cross-compile failure. I created a issue for this: nodejs/build#2977

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@benjamingr benjamingr added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. and removed commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Jun 29, 2022
benjamingr pushed a commit that referenced this pull request Jun 29, 2022
PR-URL: #43420
Refs: #43415
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@benjamingr

Copy link
Copy Markdown
Member

Landed in e2225ba 🎉

@benjamingr benjamingr closed this Jun 29, 2022
@MoLow
MoLow deleted the test-runner-describe-it branch July 5, 2022 11:37
aduh95 pushed a commit to aduh95/node-core-test that referenced this pull request Jul 8, 2022
PR-URL: nodejs/node#43420
Refs: nodejs/node#43415
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
aduh95 pushed a commit to aduh95/node-core-test that referenced this pull request Jul 9, 2022
PR-URL: nodejs/node#43420
Refs: nodejs/node#43415
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
aduh95 pushed a commit to aduh95/node-core-test that referenced this pull request Jul 9, 2022
PR-URL: nodejs/node#43420
Refs: nodejs/node#43415
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
targos pushed a commit that referenced this pull request Jul 12, 2022
PR-URL: #43420
Refs: #43415
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@targos targos added the semver-minor PRs that contain new features and should be released in the next minor version. label Jul 12, 2022
targos pushed a commit that referenced this pull request Jul 31, 2022
PR-URL: #43420
Refs: #43415
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
guangwong pushed a commit to noslate-project/node that referenced this pull request Oct 10, 2022
PR-URL: nodejs/node#43420
Refs: nodejs/node#43415
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
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. semver-minor PRs that contain new features and should be released in the next minor version. test_runner Issues and PRs related to the test runner subsystem. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.