Menu

Distinguish between TestCase and TestFixture

Help
Anonymous
2002-10-04
2002-10-04
  • Anonymous

    Anonymous - 2002-10-04

    I am newbie in CppUnit. I have a confusion between TestCase and TestFixture, please help me explain it. Thanks a lot.

    Regards,
    Hau Tran.

     
    • Wolfgang Stoecher

      For using CppUnit: just use TestFixture to derive your testclasses from (and don't bother about TestCase).

      TestFixture has been introduced around version 1.8, before that TestCase had to be used. However, it seems that deriving from TestCase still works. So to me it looks like that the distinction is more academic at the moment, maybe relevant for further releases.

      Wolfgang

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.