node/test/message/test_runner_test_name_pattern_with_only.out
cjihrig 87170c3f92
test_runner: add --test-name-pattern CLI flag
This commit adds support for running tests that match a
regular expression.

Fixes: https://github.com/nodejs/node/issues/42984
2022-10-04 09:15:02 -04:00

41 lines
806 B
Plaintext

TAP version 13
# Subtest: enabled and only
# Subtest: enabled
ok 1 - enabled
---
duration_ms: *
...
# Subtest: disabled
ok 2 - disabled # SKIP test name does not match pattern
---
duration_ms: *
...
1..2
ok 1 - enabled and only
---
duration_ms: *
...
# Subtest: enabled but not only
ok 2 - enabled but not only # SKIP 'only' option not set
---
duration_ms: *
...
# Subtest: only does not match pattern
ok 3 - only does not match pattern # SKIP test name does not match pattern
---
duration_ms: *
...
# Subtest: not only and does not match pattern
ok 4 - not only and does not match pattern # SKIP 'only' option not set
---
duration_ms: *
...
1..4
# tests 4
# pass 1
# fail 0
# cancelled 0
# skipped 3
# todo 0
# duration_ms *