Thursday, February 16, 2006
Note that my blog has moved to http://www.pksoftware.net/devblog/.

I have been making use of NUnit more and more as I reep the benifits. Recently I started using NCover, a code coverage tool. It provides stats on the code that is executed - and more importantly the code that isn't. With NCover explorer/browser you get a very good overall view of those stats, see a screenshot:
  http://www.kiwidude.com/blog/uploaded_images/NCoverExplorer-742691.png

Hook this up with your unit tests and you get a pretty good idea about how good you unit tests are...

Hmmm. After witing lots more unit tests (!) for my code I really started to appreciate NCover. Possibly the biggest area that lacked testing was the "exception" handling parts, i.e. performing "expected exception" tests with NUnit and making sure that if my code recieved an invalid parameter that an exception was handled correctly etc.

Verdict: NCover and NCoverExplorer Rocks.

Links:

One of my recent ideas is around creating my own test runner (like NUnit) but is geared towards single line tests using attributes on the methods. I think I might be a little too ambitious here though! It would be a quick way of churning out lots of simple unit tests that would increase code coverage (especially now that I can see the gaps so easily!)

Thursday, February 16, 2006 10:01:08 AM (GMT Standard Time, UTC+00:00) |  | #
Note that my blog has moved to http://www.pksoftware.net/devblog/.
Search
Links
My blog has moved to http://www.pksoftware.net/devblog/
Products
Mini SQL Query
Mini SQL Query is a minimalist SQL query tool for multiple providers (MSSQL, Oracle, OLEDB, MS Access files etc.)

Verse Popper
The "Verse Popper" displays bible verses periodically in the lower right hand corner of your screen.

Blogroll
My blog has moved to http://www.pksoftware.net/devblog/