@flakiness/junit-xml 1.0.0-alpha.0 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/package.json +7 -7
package/lib/cli.js
CHANGED
|
@@ -12,7 +12,7 @@ const STDERR_LOGGER = {
|
|
|
12
12
|
function envBool(name) {
|
|
13
13
|
return ["1", "true"].includes(process.env[name]?.toLowerCase() ?? "");
|
|
14
14
|
}
|
|
15
|
-
const program = new Command("flakiness-junit-xml").description("Convert JUnit XML report(s) to a Flakiness report and upload it to flakiness.io").argument("<junit-path>", "Path to a JUnit XML file or a directory containing XML files").option("--env-name <name>", "Environment name for the report (defaults to --category, or `junit` if neither is set)").option("--commit-id <id>", "Git commit ID (auto-detected from the current working directory if not provided)").addOption(new Option("--title <title>", "Human-readable report title").env("FLAKINESS_TITLE")).option("--output-dir <dir>", "Output directory for the report", "flakiness-report").
|
|
15
|
+
const program = new Command("flakiness-junit-xml").description("Convert JUnit XML report(s) to a Flakiness report and upload it to flakiness.io").argument("<junit-path>", "Path to a JUnit XML file or a directory containing XML files").option("-c, --category <category>", "Report category identifier (e.g. `bun`, `rust`). Defaults to `junit`.").option("--env-name <name>", "Environment name for the report (defaults to --category, or `junit` if neither is set)").option("--commit-id <id>", "Git commit ID (auto-detected from the current working directory if not provided)").addOption(new Option("--title <title>", "Human-readable report title").env("FLAKINESS_TITLE")).option("--output-dir <dir>", "Output directory for the report", "flakiness-report").addOption(new Option("--flakiness-project <project>", "Flakiness project identifier in `org/project` format").env("FLAKINESS_PROJECT")).addOption(new Option("-p, --project <org/project>").hideHelp()).addOption(new Option("--token <token>", "Flakiness.io access token for upload").env("FLAKINESS_ACCESS_TOKEN")).option("--endpoint <url>", "Flakiness.io API endpoint override").addOption(new Option("--disable-upload", "Convert only; do not upload to flakiness.io").env("FLAKINESS_DISABLE_UPLOAD")).action(async (junitPath, options) => {
|
|
16
16
|
await runConvert(junitPath, {
|
|
17
17
|
envName: options.envName ?? options.category ?? "junit",
|
|
18
18
|
outputDir: options.outputDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flakiness/junit-xml",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
"bin": {
|
|
11
11
|
"flakiness-junit-xml": "lib/cli.js"
|
|
12
12
|
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "kubik build.mts",
|
|
15
|
-
"watch": "kubik build.mts -w",
|
|
16
|
-
"test": "playwright test"
|
|
17
|
-
},
|
|
18
13
|
"keywords": [
|
|
19
14
|
"junit",
|
|
20
15
|
"junit-xml",
|
|
@@ -45,5 +40,10 @@
|
|
|
45
40
|
"kubik": "^0.24.0",
|
|
46
41
|
"tsx": "^4.21.0",
|
|
47
42
|
"typescript": "^5.9.3"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "kubik build.mts",
|
|
46
|
+
"watch": "kubik build.mts -w",
|
|
47
|
+
"test": "playwright test"
|
|
48
48
|
}
|
|
49
|
-
}
|
|
49
|
+
}
|