Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tests with CUNIT - walkthrough analysis / code coverage

I want to test some code with CUnit. Does anyone know if it is possible to do a walktrough Analysis?

I want to have something, that says, you`ve tested 80% of your function.

It must be ensured, that 100% coverage are reached with the test.


1 Answers

There are a few tools that will help - the basic free one is gcov, which will do what you need but will involve a certain amount of setup, etc.

There are other (commercial) ones, but what's available changes, including if there are non-commercial free/low-cost licences. Having said that, http://c2.com/cgi/wiki?CodeCoverageTools might be worth a starting point if you need more than gcov.

like image 173
Gwyn Evans Avatar answered Jun 28 '26 22:06

Gwyn Evans



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!