@devicecloud.dev/dcd
Version:
Better cloud maestro testing
62 lines (61 loc) • 2.76 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.outputFlags = void 0;
const core_1 = require("@oclif/core");
/**
* Output format and artifact download flags
*/
exports.outputFlags = {
'artifacts-path': core_1.Flags.string({
dependsOn: ['download-artifacts'],
description: 'Custom file path for downloaded artifacts (default: ./artifacts.zip)',
}),
'junit-path': core_1.Flags.string({
dependsOn: ['report'],
description: 'Custom file path for downloaded JUnit report (requires --report junit, default: ./report.xml)',
}),
'allure-path': core_1.Flags.string({
dependsOn: ['report'],
description: 'Custom file path for downloaded Allure report (requires --report allure, default: ./report.html)',
}),
'html-path': core_1.Flags.string({
dependsOn: ['report'],
description: 'Custom file path for downloaded HTML report (requires --report html, default: ./report.html)',
}),
async: core_1.Flags.boolean({
description: 'Immediately return (exit code 0) from the command without waiting for the results of the run (useful for saving CI minutes)',
}),
debug: core_1.Flags.boolean({
default: false,
description: 'Enable detailed debug logging for troubleshooting issues',
}),
'download-artifacts': core_1.Flags.string({
description: 'Download a zip containing the logs, screenshots and videos for each result in this run. Options: ALL (everything), FAILED (failures only).',
options: ['ALL', 'FAILED'],
}),
'dry-run': core_1.Flags.boolean({
default: false,
description: 'Simulate the run without actually triggering the upload/test, useful for debugging workflow issues.',
}),
json: core_1.Flags.boolean({
description: 'Output results in JSON format - note: will always provide exit code 0',
}),
'json-file': core_1.Flags.boolean({
description: 'Write JSON output to a file. File will be called <upload_id>_dcd.json unless you supply the --json-file-name flag - note: will always exit with code 0',
required: false,
}),
'json-file-name': core_1.Flags.string({
description: 'A custom name for the JSON file (can also include relative path)',
dependsOn: ['json-file'],
}),
quiet: core_1.Flags.boolean({
char: 'q',
default: false,
description: "Quieter console output that won't provide progress updates",
}),
report: core_1.Flags.string({
aliases: ['format'],
description: 'Generate and download test reports in the specified format. Use "allure" for a complete HTML report.',
options: ['allure', 'junit', 'html'],
}),
};