davidclemens / Dingi

Dingi is a toolbox for processing data collected by marine research gear.
MIT License
1 stars 0 forks source link

Add test coverage analysis #23

Closed davidclemens closed 3 years ago

davidclemens commented 3 years ago

Feature description

Add test coverage to the unit testing. Unit testing is already part of this repo. This will check what percentage of the source code is actually executed during testing. It therefore encourages authoring exhaustive unit tests, greatly improving the code.

MATLAB can execute coverage analysis during testing and then create a report in the standard Java code coverage reporting format Cobertura. This could then be read by Codeclimate, which integrates with GitHub. This is a setup guide.

Problem and motivation

The scope of the tests included in PRs is not verified yet. It is a great addition to the general workflow of this repo. Every PR will be checked for code coverage.

Is this something you're interested in working on

Yes