Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Do you have problems maintaining high test coverage? Send the untested code to Guantanamo!

Guantanamo is a tool that deletes all code lines that are not covered by tests.

I hear you say but what if the removed code actually serves a good purpose? The answer is simple. You can't prove it! According to Guantanamo, all code is guilty until proven innocent. Innocence is proven by test coverage. Consider this sample coverage report by Clover:

After you run Guantanamo over this source code and run Clover over it again, the coverage report will look like this:

  • No labels