mix cover.show (GenServerVirtualTime v0.6.0)

Copy Markdown View Source

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 coverage

What it does

  1. Runs all tests with coverage enabled (no exclusions)
  2. Generates HTML coverage report
  3. Opens the report in the default browser (platform-specific)

Platform Support

  • macOS: Uses open command
  • Linux: Uses xdg-open command
  • Windows: Uses start command
  • 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

run(args)

Callback implementation for Mix.Task.run/1.