Test Coverage

Test coverage is a process that allows obtaining information of the level of code being executed during a test or set of tests. Usually you get information about the percentage of your source code that is being executed during the tests, but the reports may have other information like the total number of lines and the executed ones.

There are multiple tools for test coverage for each programming language, which complicates the decision as to which one to use.

In ACS we have investigated and as a consequence we recommend the use of the following:

  • Python: coverage.py
  • Java: jcov
  • C++: gcov

Some examples will be showed to understand how to run ACS' tests with coverage support, but also how to run coverage on your project code.

  • No labels