>Where Do Bugs Hide?

>
They hide in the code that is not being executed by your unit tests. The code that is not under test is just an incubator for them to multiply and fester. Along with code reviews, and static code analysis tools, tools like Emma and Clover, should be a part of your build and development process.

For Maven users, it is as easy as adding emma:emma as one of the goals.

For Buildr users add : require “buildr/emma” to your Rake file, and targets of emma:xml emma:html to your build command line.

Hudson has a really nice Emma plugin that makes these results visible. The stats do not tell the whole story but they tend to reveal a lot about the test coverage of your current test suite.

Advertisements
This entry was posted in build, eclipse, testing, xml. Bookmark the permalink.

3 Responses to >Where Do Bugs Hide?

  1. SteveL says:

    >They also hide in the machines you don't test on. The ones in a timezone other than GMT or PST, especially countries with a 30 minute offset. They live the ones in the turkish and french canadian locales. And they live on machines with wierd networks settings, where getLocalHostname() calls take 30s and then fail. Even with good coverage, you need to test your code in odd configurations, which virtualisation aids with.

  2. David Carver says:

    >Excellent points Steve. Concurrency testing definitely needs to happen on all the platform OS that you support as well.Unit Test coverage reports are just the beginning not the end of where the bugs can hide and fester.

  3. Jesper says:

    >Funny reading this shortly after posting https://issues.apache.org/jira/browse/XALANJ-2516after a fixing a Xalan bug for Unicode supplementary plane support…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s