Skip to content

doc: explain how suites and subtests differ#63962

Open
emmayusufu wants to merge 1 commit into
nodejs:mainfrom
emmayusufu:doc-suites-vs-subtests
Open

doc: explain how suites and subtests differ#63962
emmayusufu wants to merge 1 commit into
nodejs:mainfrom
emmayusufu:doc-suites-vs-subtests

Conversation

@emmayusufu

Copy link
Copy Markdown
Contributor

The test runner docs document suite() and tests with subtests
separately, and the Subtests section already notes that the two await
their children differently. Nothing explains how they otherwise differ.

This adds a short "Suites versus subtests" section that shows the two
equivalent forms together and lists the differences: the context object
each callback receives, how their children are awaited, and what each
returns.

Fixes: #60758

The test runner documentation describes suites and tests with subtests
separately, and the Subtests section already notes that the two await
their children differently. It never explains how they otherwise differ.

This adds a short "Suites versus subtests" section that shows the two
equivalent forms together and lists the differences: the context object
each callback receives, how their children are awaited, and what each
returns.

Fixes: nodejs#60758
Signed-off-by: Emmanuel Yusufu Kimaswa <kimaswaemma36@gmail.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. test_runner Issues and PRs related to the test runner subsystem. labels Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test Runner docs could use more information on the concept of a Suite

2 participants