TrendsCommand constructor

TrendsCommand()

Implementation

TrendsCommand() {
  argParser.addOption(
    'limit',
    abbr: 'n',
    defaultsTo: '10',
    help: 'Number of recent test runs to display in the terminal preview',
  );

  argParser.addFlag(
    'html',
    help: 'Generate an interactive HTML dashboard at .testRocket/trends.html',
    defaultsTo: true,
  );

  argParser.addFlag(
    'open',
    abbr: 'o',
    help: 'Automatically open the HTML dashboard in your default browser',
    defaultsTo: true,
  );

  argParser.addOption(
    'min-coverage',
    help:
        'Target code coverage percentage (defaults to test_rocket.min_coverage in pubspec.yaml)',
  );
}