Jan
2
2006

Now this is a decent bug report..

I’ve just uploaded opencsv 1.2 to Sourceforge which fixes a bunch of annoying bugs. But one bug report has really stood out for me as a sensational open source bug report. Gabriel not just told me about the defect (not handling nulls correctly), but he posted a test case, and the fix required to make it green.

Test cases are just *so* useful for reporting and fixing bugs… and it just adds tons of value when people take the time to post a useful test. The test is actually even more valuable to me than the fix, since a test is a piece of code that just keeps on giving for future iterations and regression testing.

Cheers Gabriel! Made my day.

About the Author: Glen Smith

1 Comment + Add Comment

  • I totally agree with you. Whenever a bug is reported, the following should be undertaken by the developer trying to fix it:

    1. Try to reproduce bug
    2. Write test case(s) exposing bug (of course run it afterwards)
    3. Fix bug
    4. Run all tests and ensure all are green
    5. Report bug as fixed (with reference to new test case(s) created)

    This is sort of things I prefer to do when in my open source project JGAP (http://jgap.sourceforge.net) a bug comes up.

Leave a comment

Glen Smith

About Glen

Co-author Grails in Action