Files
node/doc/api
Chemi Atlow eba9c3481b test_runner: add tags option and tag-name filter
Adds a `tags` option to test(), it(), suite(), and describe() that
accepts an array of string labels. Tags are canonicalized to lowercase
and inherited from suites to nested tests by union. Reporter events
expose the tag set on every test, and TestContext exposes the test's
tags via `context.tags`.

Filtering is done by literal tag name through the new
`--experimental-test-tag-filter=<tag>` flag (or `testTagFilters` on
run()). The flag may be specified more than once; tests must contain
every filter to run. Untagged tests are excluded under any positive
filter.

The tagging mechanism is gated behind a one-shot ExperimentalWarning.

Signed-off-by: atlowChemi <chemi@atlow.co.il>
PR-URL: https://github.com/nodejs/node/pull/63221
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
Reviewed-By: Aviv Keller <me@aviv.sh>
2026-05-19 14:08:20 +02:00
..
2026-05-07 00:58:03 +02:00
2024-11-01 03:43:53 +00:00
2026-05-07 00:58:03 +02:00
2025-11-08 17:09:29 +00:00
2025-12-16 20:31:28 +00:00
2026-05-07 00:58:03 +02:00
2026-02-09 15:32:50 +00:00
2025-07-15 17:18:42 +00:00
2026-05-19 14:08:19 +02:00
2025-06-09 23:45:29 +02:00
2025-07-15 17:18:42 +00:00
2026-05-07 00:58:03 +02:00