mirror of
https://github.com/software-mansion/argent.git
synced 2026-09-14 19:27:14 +08:00
cd22e6cd75
`junitSuite` emitted the `incomplete` case as `<error type="run-incomplete">` directly under `<testsuite>`, where JUnit's content model — `properties?, testcase*, system-out?, system-err?` — allows no such element. A validating consumer rejected the whole document, which in CI means no annotations at all out of a file that exists and looks plausible. And because `tests` counts steps, a rejected or cancelled flow shipped `tests="0"` with zero `<testcase>` elements: any consumer that derives results from testcases, which is most of them, read an empty GREEN report for a build that exited 1. Both go away with the conventional encoding pytest and surefire emit — a synthetic `<testcase name="run">` wrapping the `<error>`, counted in `tests`. It carries no `time`: the case was never measured, and charging it the suite's wall clock would double-count against the real testcases. The reporter tests now PARSE the document instead of grepping it. Every assertion was `toContain`, which passes wherever a fragment sits — which is exactly how an element in an illegal position survived the suite.
29 lines
860 B
JSON
29 lines
860 B
JSON
{
|
|
"private": true,
|
|
"name": "@argent/cli",
|
|
"version": "0.22.0",
|
|
"description": "Shell CLI commands for argent: tools, run, server, enable, disable, flags",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"scripts": {
|
|
"build": "rm -rf dist tsconfig.tsbuildinfo && tsc",
|
|
"test": "vitest run --passWithNoTests",
|
|
"typecheck:tests": "tsc --noEmit -p tsconfig.test.json"
|
|
},
|
|
"dependencies": {
|
|
"@argent/configuration-core": "file:../configuration-core",
|
|
"@argent/registry": "file:../registry",
|
|
"@argent/telemetry": "file:../telemetry",
|
|
"@argent/tools-client": "file:../argent-tools-client",
|
|
"@clack/prompts": "^1.6.0",
|
|
"picocolors": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^26.0.1",
|
|
"fast-xml-parser": "^5.9.3",
|
|
"typescript": "^6.0.3",
|
|
"vitest": "^4.1.9"
|
|
}
|
|
}
|