Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Latest commit

 

History

History
25 lines (17 loc) · 925 Bytes

coverage.md

File metadata and controls

25 lines (17 loc) · 925 Bytes

StErlang code coverage

Ideally, we would like to get 100% code coverage of stErlang with tests. But since stErlang is specialised to some restrictions it makes it a bit non-trivial.

Fortunately, there is only a handful of such specialisations, and we can document them and disable coverage checking for corresponding small portions of stErlang code.

There are also states which stErlang should not get into (by design). The corresponding portions of code explicitly throw IllegalStateException and are also excluded from code coverage reports.

The mechanism for excluding code from coverage is $COVERAGE-OFF$/$COVERAGE-ON$ comments.

Interactive IO

Printing feedback (errors and warnings) to console is not tested in integration tests. Those places are commented with $COVERAGE-OFF$ interactivity.

It is possible, however, to test it - since System.out can be mocked.