Files
Kmake/test/fixtures/test-runner/output/test-runner-plan.snapshot
2026-05-26 23:36:42 -07:00

146 lines
3.1 KiB
Plaintext

TAP version 13
# Subtest: input validation
# Subtest: throws if options is not an object
ok 1 - throws if options is not an object
---
duration_ms: *
type: 'test'
...
# Subtest: throws if options.wait is not a number or a boolean
ok 2 - throws if options.wait is not a number or a boolean
---
duration_ms: *
type: 'test'
...
# Subtest: throws if count is not a number
ok 3 - throws if count is not a number
---
duration_ms: *
type: 'test'
...
1..3
ok 1 - input validation
---
duration_ms: *
type: 'suite'
...
# Subtest: test planning basic
ok 2 - test planning basic
---
duration_ms: *
type: 'test'
...
# Subtest: less assertions than planned
not ok 3 - less assertions than planned
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1'
failureType: 'testCodeFailure'
error: 'plan expected 1 assertions but received 0'
code: 'ERR_TEST_FAILURE'
...
# Subtest: more assertions than planned
not ok 4 - more assertions than planned
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1'
failureType: 'testCodeFailure'
error: 'plan expected 1 assertions but received 2'
code: 'ERR_TEST_FAILURE'
...
# Subtest: subtesting
# Subtest: subtest
ok 1 - subtest
---
duration_ms: *
type: 'test'
...
1..1
ok 5 - subtesting
---
duration_ms: *
type: 'test'
...
# Subtest: subtesting correctly
# Subtest: subtest
ok 1 - subtest
---
duration_ms: *
type: 'test'
...
1..1
ok 6 - subtesting correctly
---
duration_ms: *
type: 'test'
...
# Subtest: correctly ignoring subtesting plan
# Subtest: subtest
ok 1 - subtest
---
duration_ms: *
type: 'test'
...
1..1
ok 7 - correctly ignoring subtesting plan
---
duration_ms: *
type: 'test'
...
# Subtest: failing planning by options
not ok 8 - failing planning by options
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1'
failureType: 'testCodeFailure'
error: 'plan expected 1 assertions but received 0'
code: 'ERR_TEST_FAILURE'
...
# Subtest: not failing planning by options
ok 9 - not failing planning by options
---
duration_ms: *
type: 'test'
...
# Subtest: subtest planning by options
# Subtest: subtest
ok 1 - subtest
---
duration_ms: *
type: 'test'
...
1..1
ok 10 - subtest planning by options
---
duration_ms: *
type: 'test'
...
# Subtest: failing more assertions than planned
not ok 11 - failing more assertions than planned
---
duration_ms: *
type: 'test'
location: '/test/fixtures/test-runner/output/test-runner-plan.js:(LINE):1'
failureType: 'testCodeFailure'
error: 'plan expected 2 assertions but received 3'
code: 'ERR_TEST_FAILURE'
...
# Subtest: planning with streams
ok 12 - planning with streams
---
duration_ms: *
type: 'test'
...
1..12
# tests 18
# suites 1
# pass 14
# fail 4
# cancelled 0
# skipped 0
# todo 0
# duration_ms *