@bugbug-io/cli 14.20.0 → 14.22.0
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/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f03ec1d6-9498-5414-8974-6c21b3d40607")}catch(e){}}();
|
|
4
4
|
import { createRequire as __nodeCreateRequire } from 'node:module';
|
|
5
5
|
const require = __nodeCreateRequire(import.meta.url);
|
|
6
6
|
import {
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
exportTest,
|
|
25
25
|
formatErrorMessage,
|
|
26
26
|
formatInlineRunReport,
|
|
27
|
+
formatSuiteRunSummary,
|
|
27
28
|
getCliConfig,
|
|
28
29
|
getIdentity,
|
|
29
30
|
getProjectSettings,
|
|
@@ -31,6 +32,7 @@ import {
|
|
|
31
32
|
getSuite,
|
|
32
33
|
getSuiteRun,
|
|
33
34
|
getSuiteRunJunitReport,
|
|
35
|
+
getSuiteRunSummary,
|
|
34
36
|
getTest,
|
|
35
37
|
getTestRun,
|
|
36
38
|
getTestRunJunitReport,
|
|
@@ -69,7 +71,7 @@ import {
|
|
|
69
71
|
waitForSuiteRun,
|
|
70
72
|
waitForTestRun,
|
|
71
73
|
writeReportXml
|
|
72
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-FLCWV4UR.js";
|
|
73
75
|
import "./chunk-XLIBEETK.js";
|
|
74
76
|
import "./chunk-3PJ4ZE2N.js";
|
|
75
77
|
import {
|
|
@@ -3831,8 +3833,21 @@ var SUITE_RUN_ACTION_ADAPTER = {
|
|
|
3831
3833
|
getJunitReport: getSuiteRunJunitReport,
|
|
3832
3834
|
stopRun: stopSuiteRun
|
|
3833
3835
|
};
|
|
3834
|
-
var
|
|
3835
|
-
|
|
3836
|
+
var showCompactSuiteRun = async (runId) => {
|
|
3837
|
+
const mode = resolveOutputMode();
|
|
3838
|
+
try {
|
|
3839
|
+
const summary = await getSuiteRunSummary(runId);
|
|
3840
|
+
if (mode === "json") printJson(summary);
|
|
3841
|
+
else process.stdout.write(formatSuiteRunSummary(summary));
|
|
3842
|
+
const code = exitCodeForStatus(summary.status);
|
|
3843
|
+
if (code !== 0) exitWith(code);
|
|
3844
|
+
} catch (err) {
|
|
3845
|
+
emitError(mode, { error: err instanceof Error ? err.message : String(err) });
|
|
3846
|
+
exitWith(EXIT_GENERAL_ERROR);
|
|
3847
|
+
}
|
|
3848
|
+
};
|
|
3849
|
+
var registerSuiteRunShowCommand = (parent, commandName = "show") => parent.command(`${commandName} <runId>`).description("Show suite run details").option("--reporter <name>", "Reporter to use: inline or junit", "inline").option("--output-path <path>", "Path to save the suite report").option("--compact", "Show totals and only the failed tests with their failing step").action(
|
|
3850
|
+
(runId, opts) => opts.compact ? showCompactSuiteRun(runId) : getExistingRunResultAction(runId, opts, SUITE_RUN_ACTION_ADAPTER)
|
|
3836
3851
|
);
|
|
3837
3852
|
var registerSuiteRunStopCommand = (parent, commandName = "stop") => parent.command(`${commandName} <runId>`).description("Stop a suite run").action((runId) => stopExistingRunAction(runId, SUITE_RUN_ACTION_ADAPTER));
|
|
3838
3853
|
var registerSuiteRunReportCommand = (parent, commandName = "report") => parent.command(`${commandName} <runId>`).description("Get JUnit XML report for a suite run").option("-o, --output <file>", "Output file path (prints to stdout if omitted)").action(
|
|
@@ -4196,7 +4211,10 @@ var registerTestExportCommand = (parent, commandName = "export") => parent.comma
|
|
|
4196
4211
|
exitWith(EXIT_GENERAL_ERROR);
|
|
4197
4212
|
}
|
|
4198
4213
|
});
|
|
4199
|
-
var registerTestImportCommand = (parent, commandName = "import") => parent.command(`${commandName} <file>`).description("Import a test from a YAML or ZIP file").option("--conflict-mode <mode>", "Conflict handling mode for existing imported resources").
|
|
4214
|
+
var registerTestImportCommand = (parent, commandName = "import") => parent.command(`${commandName} <file>`).description("Import a test from a YAML or ZIP file").option("--conflict-mode <mode>", "Conflict handling mode for existing imported resources").option(
|
|
4215
|
+
"--folder-id <id>",
|
|
4216
|
+
"Test folder UUID to import into (default: project root; overrides a folder inside a ZIP)"
|
|
4217
|
+
).action(async (file, opts) => {
|
|
4200
4218
|
const mode = resolveOutputMode();
|
|
4201
4219
|
try {
|
|
4202
4220
|
const fmt = detectFormat(file);
|
|
@@ -4205,7 +4223,8 @@ var registerTestImportCommand = (parent, commandName = "import") => parent.comma
|
|
|
4205
4223
|
`);
|
|
4206
4224
|
}
|
|
4207
4225
|
const result = await importTest(file, {
|
|
4208
|
-
conflictMode: opts.conflictMode
|
|
4226
|
+
conflictMode: opts.conflictMode,
|
|
4227
|
+
folderId: opts.folderId
|
|
4209
4228
|
});
|
|
4210
4229
|
if (mode === "json") {
|
|
4211
4230
|
printJson(result);
|
|
@@ -4567,7 +4586,7 @@ program2.exitOverride();
|
|
|
4567
4586
|
});
|
|
4568
4587
|
analytics.trackEvent("cli_session_started");
|
|
4569
4588
|
if (startupMode.type === "commandline" && await shouldRedirectUnauthenticatedCommandToInit(process.argv, hasUsableSession)) {
|
|
4570
|
-
const { startNavigator } = await import("./app-
|
|
4589
|
+
const { startNavigator } = await import("./app-UVO26FWE.js");
|
|
4571
4590
|
await startNavigator({
|
|
4572
4591
|
initialRoute: "/init",
|
|
4573
4592
|
initialRouteState: {
|
|
@@ -4579,7 +4598,7 @@ program2.exitOverride();
|
|
|
4579
4598
|
return;
|
|
4580
4599
|
}
|
|
4581
4600
|
if (startupMode.type === "navigator") {
|
|
4582
|
-
const { startNavigator } = await import("./app-
|
|
4601
|
+
const { startNavigator } = await import("./app-UVO26FWE.js");
|
|
4583
4602
|
await startNavigator({
|
|
4584
4603
|
initialRoute: startupMode.route,
|
|
4585
4604
|
token: config.token,
|
|
@@ -4616,4 +4635,4 @@ program2.exitOverride();
|
|
|
4616
4635
|
}
|
|
4617
4636
|
})();
|
|
4618
4637
|
//# sourceMappingURL=index.js.map
|
|
4619
|
-
//# debugId=
|
|
4638
|
+
//# debugId=f03ec1d6-9498-5414-8974-6c21b3d40607
|