Skip to content

chore(detector): show number of test cases #161

chore(detector): show number of test cases

chore(detector): show number of test cases #161

Triggered via push December 8, 2024 13:21
Status Failure
Total duration 2m 3s
Artifacts

nodejs.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
test/cli.test.ts > cli > html report > find no smells for a single file: cli/test/cli.test.ts#L25
AssertionError: expected '\n> [email protected] cli\n> ts-node …' not to contain 'Error:' - Expected + Received - Error: + + > [email protected] cli + > ts-node src/find-smells.ts fake-data/no-smells/no-smells.test.js javascript --report=html --report-output=. + + Error: ENOENT: no such file or directory, open '/home/runner/work/smelly-test/smelly-test/detector/build/src/reporters/layout/example.html' + at async open (node:internal/fs/promises:639:25) + at async Object.readFile (node:internal/fs/promises:1249:14) + at async ReadHtml.readTeamplate (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/Input.ts:9:18) + at async HtmlOutput.writeTo (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/Output.ts:13:20) + at async SmellsAggreagtor.build (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/SmellsAgreggator.ts:16:7) + at async execute (/home/runner/work/smelly-test/smelly-test/cli/src/find-smells.ts:50:7) { + errno: -2, + code: 'ENOENT', + syscall: 'open', + path: '/home/runner/work/smelly-test/smelly-test/detector/build/src/reporters/layout/example.html' + } + Report HTML generated + ❯ test/cli.test.ts:25:26
test/cli.test.ts > cli > html report > find no smells for a path with regex: cli/test/cli.test.ts#L38
AssertionError: expected '\n> [email protected] cli\n> ts-node …' not to contain 'Error:' - Expected + Received - Error: + + > [email protected] cli + > ts-node src/find-smells.ts fake-data/no-smells/**/*test.js javascript --report=html --report-output=/home/runner/work/smelly-test/smelly-test/cli + + Error: ENOENT: no such file or directory, open '/home/runner/work/smelly-test/smelly-test/detector/build/src/reporters/layout/example.html' + at async open (node:internal/fs/promises:639:25) + at async Object.readFile (node:internal/fs/promises:1249:14) + at async ReadHtml.readTeamplate (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/Input.ts:9:18) + at async HtmlOutput.writeTo (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/Output.ts:13:20) + at async SmellsAggreagtor.build (/home/runner/work/smelly-test/smelly-test/detector/src/reporters/SmellsAgreggator.ts:16:7) + at async execute (/home/runner/work/smelly-test/smelly-test/cli/src/find-smells.ts:50:7) { + errno: -2, + code: 'ENOENT', + syscall: 'open', + path: '/home/runner/work/smelly-test/smelly-test/detector/build/src/reporters/layout/example.html' + } + Report HTML generated + ❯ test/cli.test.ts:38:26
build
Process completed with exit code 1.
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636