Code Coverage

Today I have been mostly OBSESSED by upping my unit test code coverage.

When I inherited this current codebase all the way back in August 2008, the code coverage was 0%, nothing, nada. No unit tests and the code was in a right 2 and 8, and no mistake.

It's taken a LONG time and a lot of effort (and a lot of referring to my Design Patterns books, GOF and HeadFirst, both highly recommended, even if the examples in both are in Java rather than a proper language) - but I'm there, today I hit 93.7% with the remainder of the code being reasonably un-unit-testable (mainly in the datalayer, where no amount of fiddling will let me properly mock out OleDb connections...)

I have started work on a "Refactor to Abstract Factory" method - which I intend to demonstrate at the next "Show and Tell", just to bore the life out of the Product Owners when they ask "so what have you delivered this month?".

The upshot of this is that the codebase is now fit for purpose and can now be feature branched effectively between here, Pfaffeikon and Chicago - new development will be along the lines of extending the existing factories to include new concrete instantiations of the various factory interfaces (and some abstracts) that have been generated as part of this.

'tis all cool.

:)

Comments

Popular posts from this blog

Non-cursor cursors

Spotify analogy doesn't work