Loading ...
Sorry, an error occurred while loading the content.

138387Re: [XP] Re: Group vote for C unit testing framework

Expand Messages
  • Tim Ottinger
    Jan 25, 2008
      CppUnit, CppUnitLite, CppUTest, TUT, unit++.

      CppUnit is actually pretty good if you don't build separate .cpp and .h files, but do your
      work all in the class def in a cpp file. Otherwise you have that crazy triplicate "mother may
      I" work (declare, register, implement in three places). There are ways to make it easier,
      including writing vim macros (http://blog.objectmentor.com/articles/2007/05/03/cppunit-and-vim).

      TUT I particularly disliked.

      I prefer the frameworks that are amenable to a lot of small fixtures (more bdd-style)
      and no tools in perl or whatever to patch it up. I also prefer to have control over the
      output format so that I can make test errors look like compile errors to the editor or
      IDE I'm working with.

      But I would assume that CppUnit or unit++ were fairly "standard" if nobody told
      me any different. ;-)

      ----- Original Message ----
      From: tkjuho <tkjuho@...>
      To: extremeprogramming@yahoogroups.com
      Sent: Friday, January 25, 2008 10:13:52 AM
      Subject: [XP] Re: Group vote for C unit testing framework

      Hi Hugo,

      > C doesn't seem to have a "standard" library for unit testing like
      > other languages.
      > Which framework do you use?

      I use mainly GUnit (https://garage.maemo.org/projects/gunit/)
      nowadays, or some simple self made framework that suits my needs.

      Tomi Juhola
      Specialist, Tieturi Oy

      To Post a message, send it to: extremeprogramming@...

      To Unsubscribe, send a blank message to:

      ad-free courtesy of objectmentor.com
      Yahoo! Groups Links

      Be a better friend, newshound, and
      know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

      [Non-text portions of this message have been removed]
    • Show all 19 messages in this topic