So, unit testing...

So, unit testing...

Currently looking for something for a small-sized hobby project (library code), with a price tag to match.

DUnit the way to go or are there better alternatives?

Comments

  1. Uwe Raabe Oh that does look interesting, thanks.

    ReplyDelete
  2. There is also DUnit2 (http://sourceforge.net/projects/dunit2/), which (IMO) sits between DUnit and DUnitX

    ReplyDelete
  3. Nicholas Ring Thanks, I'll have a look.

    ReplyDelete
  4. Of the three mentioned, only DUnitX is under active development. DUnit hasn't been touched in years and DUnit2 is updated infrequently. Of course that means DUnitX's api is in flux. It also can't be used with versions prior to D2010 because of its reliance on attributes. Don't let that stop you from using it though. The limited backwards compatibility allows it to take advantage of language features that make it easier to use and do things the other ones can't.

    ReplyDelete
  5. Graeme Geldenhuys The only issue I have with DUnit2 is that it was last updated for Delphi XE2

    ReplyDelete
  6. Graeme Geldenhuys Still runs under XE3, XE4 and most likely XE5, as long as one updates the "watchFile.pas" unit. Slight annoyance but there are bigger problems around :-)
    Don't get me wrong, I prefer DUnit2 over DUnit. Would love it if we could move over to DUnit2 at work (can't because you can't turn off memory leak warnings in console mode - only takes notice of the setting in the GUI Runner). Another annoyance is that it only works for 32 bit apps - there is no 64 bit version (I have done changes locally so it works in 64 bit) - and the submitting of changes are a slow process... in that by the time I get notification, I have moved on. :-(

    ReplyDelete
  7. Thanks for the input guys. My work will likely be XE'ish and above only, and 64-bit is a must. I'll give DUnit2 and DUnitX both a whirl and see :)

    ReplyDelete

Post a Comment