Thursday, September 22, 2011

Testing tools

I found another great testing tool:
http://code.google.com/p/googlemock/
It allows me to mock-up entire class.

The other one, previously used by me is:
http://code.google.com/p/googletest/
Which is just a unit test framework.
The team of this two can really make the life of developer much simpler as it allows to test code functionality every time he mess a lot. Bugs cannot feel safe from now.

And if we are using unit tests and some more generic system tests at some points we probably start to care about the test coverage. We want to know which functionalities are tested and what is percentage coverage of source by tests. In C++ we can accomplish this by:
http://gcc.gnu.org/onlinedocs/gcc/Gcov.html
To display the results in human-friendly format we can use:
http://ltp.sourceforge.net/coverage/lcov.php

No comments:

Post a Comment