VSoftTechnologies/DUnitX

Support for Test Coverage Visualization in GitLab

SlMaker opened this issue ยท 5 comments

Hello,
since DUnitX supports the JUnit XML logger (#258, #273) already it would also be nice to have support for test coverage visualization. ๐Ÿ˜„
https://docs.gitlab.com/ee/user/project/merge_requests/test_coverage_visualization.html
https://cobertura.github.io/cobertura/

I see 2 options:

Using the existing code coverage project would be more efficient, but would probably have to be updated to the latest delphi version.

I don't have plans for adding code coverage to DUnitX right now.. far too busy with other projects and my day job.

* Fork [this code coverage project](https://github.com/DelphiCodeCoverage/DelphiCodeCoverage) and create a new output format there.

I used this code coverage project for a while using the default output format. I works fine out of the box, but it slowed down the unit tests by a factor of ten. If you run coverage tests only once a night, it won't hurt you.

The reason it slows down the tests is because to do code coverage, you literally have to make every line a breakpoint and the coverage tool is a debugger. Think single stepping every line of code.

I know, I just wanted to let the OP know what to expect when taking this path.