YourBase Test Acceleration supports integration with the following code coverage reporting tools without changing your workflow, for example:
However, since YourBase Test Acceleration is designed to avoid test runs that do not need to be executed, the test coverage percentage as reported by your code coverage tool will be lower than what is actually covered.
This may cause your CI builds to fail if they’re configured to pass only when the test coverage is above a specified threshold. The following sections lists ways in which you can circumvent this problem.
This feature allows you to configure your code coverage tool such that YourBase Test Acceleration can fill missing coverage data from previous runs.
The feature is available only on the following code coverage tools:
To ensure that coverage reports account for skipped tests as well:
- Use Coverage 5.5+
- Set the following in your
[run] relative_files = true
Note: Prior to Coverage 5.5, coverage reports will only include the tests run by YourBase Test Acceleration. Tests that were skipped by YourBase Test Acceleration will be omitted from coverage reporting, thereby decreasing your coverage percentage.
You can configure your code coverage tool such that YourBase Test Acceleration can fill missing coverage data from previous runs.
On your CI, you can reduce the build-pass threshold for the percentage of tests covered, so that you can use YourBase Test Acceleration seamlessly.
Reach out to firstname.lastname@example.org if you have questions about support for your favorite coverage tool.