coverage testing
9 October 2009 // Filed under tests
Here’s a little bit of rcov love to ensure that your test suites are covering what they should be.
This should give you:
rake test:rcov rake test:rcov:units rake test:rcov:functionals rake test:rcov:helpers
…with a tailored coverage report for each.
Hopefully this can give you a better idea of where your tests are lacking. As it turns out, despite my app having coverage of 96%, my unit tests only cover 86% of my models. I guess that means I have a bit of work to do.
There’s some app-specific stuff in EXCLUDED_FILES but the rest should be relatively application agnostic.
Enjoy
2009-10-09 :: admin