The following options are available when running the undercover command from the terminal:
| Flag | Long Flag | Description |
|---|
-s | --simplecov path | SimpleCov JSON report file |
-l | --lcov path | LCOV report file path (to be deprecated) |
-p | --path path | Project directory |
-g | --git-dir dir | Override .git with a custom directory |
-c | --compare ref | Generate coverage warnings for all changes after ref |
-r | --ruby-syntax ver | Ruby syntax version (e.g., ruby31, ruby32) |
-w | --max-warnings limit | Max warnings to generate before stopping (performance optimization) |
-f | --include-files globs | Comma-separated glob patterns to include (default: '*.rb,*.rake,*.ru,Rakefile') |
-x | --exclude-files globs | Comma-separated glob patterns to skip |
| --format FORMAT | Output format: text (default) or json |
-h | --help | Prints help |
| --version | Show version |
Usage: undercover [options]
-s, --simplecov path SimpleCov JSON report file
-l, --lcov path LCOV report file path (to be deprecated)
-p, --path path Project directory
-g, --git-dir dir Override `.git` with a custom directory
-c, --compare ref Generate coverage warnings for all changes after `ref`
-r, --ruby-syntax ver Ruby syntax version, one of: current, ruby18, ruby19, ruby20, ruby21, ruby22, ruby23, ruby24, ruby25, ruby26, ruby30, ruby31, ruby32, ruby33
-w, --max-warnings limit Maximum number of warnings to generate before stopping analysis. Useful as a performance improvement for large diffs.
-f, --include-files globs Include files matching specified glob patterns (comma separated). Defaults to '*.rb,*.rake,*.ru,Rakefile'
-x, --exclude-files globs Skip files matching specified glob patterns (comma separated). Empty by default.
--format FORMAT Output format: text, json (default: text)
-h, --help Prints this help
--version Show version