CoverageCommand constructor
CoverageCommand()
Implementation
CoverageCommand() {
argParser.addOptionMorphemeYaml();
argParser.addOption(
'apps',
abbr: 'a',
help: 'Generate coverage for specific app (optional)',
);
argParser.addOption(
'feature',
abbr: 'f',
help: 'Generate coverage for specific feature (optional)',
);
argParser.addOption(
'page',
abbr: 'p',
help: 'Generate coverage for specific page (optional)',
);
argParser.addOption(
'reporter',
abbr: 'r',
help: '''Test result output format:
[compact] Single line, updated continuously (default)
[expanded] Separate line for each update, ideal for CI
[failures-only] Only show failing tests
[github] GitHub Actions compatible format
[json] Machine-readable JSON format
[silent] No output, exit code only''',
allowed: [
'compact',
'expanded',
'failures-only',
'github',
'json',
'silent',
],
);
argParser.addOption(
'file-reporter',
help: '''Save test results to file in specified format.
Format: <reporter>:<filepath>
Example: "json:reports/tests.json"''',
);
}