Test coverage report
The Coverage tool is provided to identify the test coverage. In the Code Coverage of UP, the log data are evaluated and compared with the model.
The system checks the following elements:
- States
Checks whether all states have been passed at least once. The statelog must be activate. - Commands
Checks whether all commands have been set at least once. The statelog must be activate. - Messages
Checks whether all messages have been set and reset at least once. Messages that are not logged are not checked.
Configuration
To use Coverage, it must be activated in the TestTargetConfig.
Report
The result of the coverage is written to a report file in the report folder. As a report, a JUnit report is created. Define in the CoverageConfig the behavior of the elements that were not executed (skipped, error or failure). This means that the elements that do not fulfill the coverage are marked as skipped, for example.
In UPstudio, the report can be opened in the JUnit window.