Each build module parsed its own test runner's output, so a fix in one never reached the others: a failed node --test run was worded by a passing line of its first file. buildstep.Failure names the test, its file, its cause and its own output; ReadGoTest (moved from mesh-build-go) and ReadTAP fill it; package conformance holds every build module to it with runner output captured with the build nodes' own toolchains.
62 lines
1.6 KiB
Plaintext
62 lines
1.6 KiB
Plaintext
TAP version 13
|
|
# Subtest: the seat
|
|
# Subtest: passes inside
|
|
ok 1 - passes inside
|
|
---
|
|
duration_ms: 0.577396
|
|
type: 'test'
|
|
...
|
|
# Subtest: fails inside
|
|
not ok 2 - fails inside
|
|
---
|
|
duration_ms: 1.621198
|
|
type: 'test'
|
|
location: '/tmp/1901k/node/suite/test/a.test.ts:5:3'
|
|
failureType: 'testCodeFailure'
|
|
error: |-
|
|
Expected values to be strictly deep-equal:
|
|
[32m+ actual[39m [31m- expected[39m
|
|
|
|
[39m {
|
|
[32m+[39m holders: 2
|
|
[31m-[39m holders: 1
|
|
[39m }
|
|
|
|
code: 'ERR_ASSERTION'
|
|
name: 'AssertionError'
|
|
expected:
|
|
holders: 1
|
|
actual:
|
|
holders: 2
|
|
operator: 'deepStrictEqual'
|
|
stack: |-
|
|
TestContext.<anonymous> (file:///tmp/1901k/node/suite/test/a.test.ts:5:37)
|
|
Test.runInAsyncScope (node:async_hooks:226:14)
|
|
Test.run (node:internal/test_runner/test:1402:25)
|
|
Suite.processPendingSubtests (node:internal/test_runner/test:974:18)
|
|
Test.postRun (node:internal/test_runner/test:1542:19)
|
|
Test.run (node:internal/test_runner/test:1467:12)
|
|
async Promise.all (index 0)
|
|
async Suite.run (node:internal/test_runner/test:1905:7)
|
|
async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3)
|
|
...
|
|
1..2
|
|
not ok 1 - the seat
|
|
---
|
|
duration_ms: 3.295664
|
|
type: 'suite'
|
|
location: '/tmp/1901k/node/suite/test/a.test.ts:3:1'
|
|
failureType: 'subtestsFailed'
|
|
error: '1 subtest failed'
|
|
code: 'ERR_TEST_FAILURE'
|
|
...
|
|
1..1
|
|
# tests 2
|
|
# suites 1
|
|
# pass 1
|
|
# fail 1
|
|
# cancelled 0
|
|
# skipped 0
|
|
# todo 0
|
|
# duration_ms 115.948112
|