Code coverage is a metric that measures the amount of code that is executed during the test suite. It is a useful metric to understand how much of your code is being tested and to identify areas that are not being tested.
EasyTest
provides built-in support for code coverage.
To generate a code coverage report, you can use the --coverage
flag when running the tests:
or set the coverage
option in the easytest configuration file:
You can set additional options for coverage:
Currently only
LCOV
format is supported.
EasyTest automatically generates a coverage report for all imported project files.
EasyTest automatically generates a coverage report for all tests that use the browser. In this case, you can set additional options for coverage:
When the tests are run with the --coverage
flag, EasyTest
will generate a code coverage report in LCOV
format in the coverage
directory. The report will include information about which lines of code were executed during the test suite.
You can use this information to identify areas of your code that are not being tested and to improve the coverage of your test suite.
EaseTest generate a report compatible with CODECOV. You can upload reports to the codecov.io service to analyze coverage.
TODO
TODO