A test report and coverage on every push: npm run test:ci writes JUnit and LCOV of src/ through source maps, kept as the check job's junit and coverage artifacts (closes #9) ca2304a7851a
Author Andy McCall @andymccall <[email protected] >
via ↳ agent agent:claude@andymccall <[email protected] > · keyless, under your grant for changes,refs,seal · key ffc2937e1a9e
When 8 days ago · 2026-10-27 16:14 UTC
Signature ◈ sealed by agent:claude@andymccall
Hash ca2304a7851a6116178b4cad5173f9b50cd3e37affcfc79d673160930bba4e62
Depends on 0072c2b27293 b55e0d00545e bed495a96408
Depended on by dac6876e4d08 4be0e6185b6d c530a43af73b
In bookmarks main
In tags v0.18.0
Edits 4 atoms, 0 tree operations, 2 files
Browse the tree at this change
.flow/pipeline.kdl package.json
modified
.flow/pipeline.kdl
+13 −1
…
24 unchanged lines
25
25
env {
26
26
CARGO_INCREMENTAL "0"
27
27
}
28
-
exec "sh" "-euc" "cargo build --locked --manifest-path deps/oxygen/Cargo.toml -p oxy && npm ci --offline --cache /opt/npm-cache --no-audit --no-fund && OXY_BIN=/src/deps/oxygen/target/debug/oxy npm run check "
28
+
exec "sh" "-euc" "cargo build --locked --manifest-path deps/oxygen/Cargo.toml -p oxy && npm ci --offline --cache /opt/npm-cache --no-audit --no-fund && OXY_BIN=/src/deps/oxygen/target/debug/oxy npm run typecheck && npm run build && npm run test:ci "
29
+
// A JUnit report (kept whether or not the tests pass) and line coverage
30
+
// of src/ through esbuild's source maps, for the hub's Tests and
31
+
// Coverage tabs.
32
+
output {
33
+
artifact "junit" {
34
+
path "/src/out/junit.xml"
35
+
when "always"
36
+
}
37
+
artifact "coverage" {
38
+
path "/src/out/lcov.info"
39
+
}
40
+
}
29
41
}
30
42
31
43
job "package" {
…
4 unchanged lines
modified
package.json
+3 −2
…
1199 unchanged lines
1200
1200
"build": "esbuild src/extension.ts --bundle --platform=node --format=cjs --external:vscode --outfile=dist/extension.js --sourcemap",
1201
1201
"watch": "npm run build -- --watch",
1202
1202
"typecheck": "tsc --noEmit -p .",
1203
-
"pretest": "esbuild src/oxy.ts --bundle --platform=node --format=esm --outfile=out/oxy.mjs && esbuild src/diffutil.ts --bundle --platform=node --format=esm --outfile=out/diffutil.mjs && esbuild src/markers.ts --bundle --platform=node --format=esm --outfile=out/markers.mjs && esbuild src/api.ts --bundle --platform=node --format=esm --outfile=out/api.mjs && esbuild src/commitbox.ts --bundle --platform=node --format=esm --outfile=out/commitbox.mjs && esbuild src/handoff.ts --bundle --platform=node --format=esm --outfile=out/handoff.mjs && esbuild src/paths.ts --bundle --platform=node --format=esm --outfile=out/paths.mjs && esbuild src/looks.ts --bundle --platform=node --format=esm --outfile=out/looks.mjs",
1204
-
"test": "node --test \"test/**/*.test.mjs\"",
1203
+
"pretest": "esbuild src/oxy.ts --bundle --platform=node --format=esm --sourcemap -- outfile=out/oxy.mjs && esbuild src/diffutil.ts --bundle --platform=node --format=esm --sourcemap -- outfile=out/diffutil.mjs && esbuild src/markers.ts --bundle --platform=node --format=esm --sourcemap -- outfile=out/markers.mjs && esbuild src/api.ts --bundle --platform=node --format=esm --sourcemap -- outfile=out/api.mjs && esbuild src/commitbox.ts --bundle --platform=node --format=esm --sourcemap -- outfile=out/commitbox.mjs && esbuild src/handoff.ts --bundle --platform=node --format=esm --sourcemap -- outfile=out/handoff.mjs && esbuild src/paths.ts --bundle --platform=node --format=esm --sourcemap -- outfile=out/paths.mjs && esbuild src/looks.ts --bundle --platform=node --format=esm --sourcemap -- outfile=out/looks.mjs",
1204
+
"test": "node --enable-source-maps -- test \"test/**/*.test.mjs\"",
1205
+
"test:ci": "node --enable-source-maps --test --experimental-test-coverage --test-coverage-exclude=\"test/**\" --test-reporter=spec --test-reporter-destination=stdout --test-reporter=junit --test-reporter-destination=out/junit.xml --test-reporter=lcov --test-reporter-destination=out/lcov.info \"test/**/*.test.mjs\"",
1205
1206
"check": "npm run typecheck && npm run build && npm test",
1206
1207
"package": "vsce package --no-dependencies"
1207
1208
},
…
8 unchanged lines