Menu

Is it possible to "decorate" per Suite?

2002-05-02
2002-10-08
  • Bob Anderson

    Bob Anderson - 2002-05-02

    The status report of one dot per test method, with no indication of what Suite is running seems pretty lame, but I can't figure out a way to show the name of each Suite as it executes.

    Any suggestions?

    Bob

     
    • David May

      David May - 2002-10-08

      So there is a bug in the TextTestProgressListener. First you need to fix the bug, then you need to add the text:

      v1.8.0

      ** FIXING THE BUG **
      In file src/cppunit/TextTestProgressListener.cpp
      a) Add #include to <cppunit/Test.h> (this is so that you can access the test parameter in the functions)
      b) on line 38, change the function name from done() to endTest( Test *test )

      In file include/cppunit/TextTestProgressListener.h
      c) on line 27, change function from done() to endTest( Test *test )

      This will actually change the behavior so that each dot will be followed by a newline (even worse) but leave it if you want to make the changes in the next section.

      *** DECORATING EACH TEST ***

      In file src/cppunit/TextTestProgressListener.cpp on line 23, change from:
         old:  "."
         new: "running " + test->getName() + " ... ";

      David

       

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.