joeyh

faster test suites via code coverge analysis

joeyh at

Thinking about using code coverage to speed up a test suite. Run the whole suite once to find which tests cover which code. Then a code change can be tested incrementally by only re-running those tests that cover that code.

Anyone know of a test system that does that?

A difficulty would be when code changes change the coverage (eg, during refactoring). The incremental test run would run too many or too few test cases due to its coverage data being out of date.

jrobb likes this.

Douglas Perkins, Douglas Perkins shared this.

@joeyh Coverity has tooling to support that workflow, but I don't know of any FOSS tools that do.

James McCoy at 2016-01-01T19:13:11Z