Runs comprehensive test coverage analysis including all tests.
This task runs ALL tests (including slow and diagram generation tests) and generates an HTML coverage report that opens in the browser.
Usage
mix coverageWhat it does
- Runs all tests with coverage enabled (no exclusions)
- Generates HTML coverage report
- Opens the report in the default browser (platform-specific)
Platform Support
- macOS: Uses
opencommand - Linux: Uses
xdg-opencommand - Windows: Uses
startcommand - Fallback: Prints the file path if no command is available
Output
The HTML report is generated in cover/excoveralls.html and includes:
- Line-by-line coverage analysis
- Coverage percentages per module
- Overall project coverage statistics
- Interactive browsing of source code with coverage highlighting
Summary
Functions
Callback implementation for Mix.Task.run/1.
Functions
Callback implementation for Mix.Task.run/1.