Menu

Testing CppUnit

2002-03-29
2002-04-01
  • Mike Powell

    Mike Powell - 2002-03-29

    Here's a question that'll wrap your mind around a riddle. Is the CppUnit used to test itself? (more of a rhetorical question really).

     
    • Kent Dahl

      Kent Dahl - 2002-03-30

      If it is a rhetorical question, then you're not expecting an answer? In which case it would seem like your message is a hint to start writing tests for CppUnit in CppUnit...

      But riddle me this, Batman: How can you use CppUnit itself to test itself if there is a bug which causes failing tests to appear successful?

      Okay, okay, okay... That might sound far-fetched, but it seems to me that alot of obvious and covering testcases for CppUnit itself would selfimplode, since youre testing and relying on functionality at the same time...

      So I think you'd need to write a chunk of non-CppUnit dependant unittests for various functionality until you have covered enough to start.

       
    • Baptiste Lepilleur

      look into: examples/cppunittest for CppUnit test suite.

       

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.