Coverage Reports
SquireX tracks line-level code coverage across all executed Apex classes.
Terminal Summaryโ
squirex run -d force-app/main/default/classes --coverage
Output:
CODE COVERAGE:
AccountController 12/15 80% โโโโโโโโโโโโโโโ
OpportunityHandler 18/20 90% โโโโโโโโโโโโโโโโโโโโ
ContactService 8/10 80% โโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
TOTAL 38/45 84%
LCOV Report (IDE Gutter Highlighting)โ
squirex run --coverage-report coverage.lcov
In VS Code, install Coverage Gutters extension and point it at coverage.lcov for inline line-level highlighting.
JSON Reportโ
squirex run --coverage-report coverage.json
{
"classes": [
{
"name": "AccountController",
"coveredLines": [5, 6, 7, 10, 12],
"uncoveredLines": [15, 18, 22],
"percentage": 80
}
],
"total": { "covered": 38, "total": 45, "percentage": 84 }
}
JUnit XML (CI Dashboards)โ
squirex run --junit results.xml
Consumed by GitHub Actions mikepenz/action-junit-report@v4, GitLab's JUnit artifact parser, and most CI dashboards.