Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Wish for extra anntoation of test case

2010-08-12
2013-04-22
  • Andris Pavenis
    Andris Pavenis
    2010-08-12

    One may often run the same code in testcase on different data (eg. placed in the array). Using CPPUNIT_ASSERT_* macros in this case only show test case name in case of the failure which does not identify which item from data array caused failure.

    It would be nice to have a possibility to have extra annotation inside test case to include also this missing information. Perhaps
    the simplest would be creating object of some class which temporarily appends annotation and its destructor removes.

    Andris