-
Notifications
You must be signed in to change notification settings - Fork 66
Is it ok for empty tests to return 1..0? #186
Copy link
Copy link
Open
Description
I'm working on a C++ implementation and I would like to clarify the behaviour for empty tests.
A node-tap run with:
import t from 'tap'
t.test('Empty', (t): void => {
t.end()
})produces:
# Subtest: tests/tap/other/empty.ts
# Subtest: Empty
1..0
ok 1 - Empty # time=2.246ms
1..1
ok 1 - tests/tap/other/empty.ts # time=7128.479ms
The document with the TAP version 14 specs mentions a 1..0 case for skipped tests, but does not mention explicitly empty tests.
Can you confirm that 1..0 is the expected value for empty tests?
Thank you,
Liviu
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels