Share

CppUnit - C++ port of JUnit

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

is it possible to run one test at a time?

You are viewing a single message from this topic. View all messages.

  1. 2009-07-22 15:27:34 UTC
    I'm not sure if the default TextTestRunner has this by default, but at work I created my own runner (i.e. main function) that parses the command line arguments and passes an argument into the FindTest function. (I created by own main function since I also wanted a verbose output toggle.)

    You then only use the TestFactoryRegistry to collect the tests into one set and search that set for one or more tests, given a string like MyTest or MyTest::Test1 to select a specific or group of tests.

    Basically I used the code on this page and dug for five minutes in the API docs to get what I wanted:
    http://cppunit.sourceforge.net/doc/lastest/cppunit_cookbook.html
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.