Menu

How to run Unit Tests using command line in linux

atulya
2015-03-31
2015-04-06
  • atulya

    atulya - 2015-03-31

    Hi,

    I am using Ubuntu for cppcheck build.

    I have following queries
    1. How to run unit test using command line
    2. How to run a subset of unit test cases.
    3. How to run a particular test case only.

    Regards
    Raj

     
  • Daniel Marjamäki

    thanks!

    To run all unit tests:

    make test
    

    or

    make testrunner
    ./testrunner
    

    To run a subset:

    ./testrunner TestOther
    

    To run a particular test case:

    ./testrunner TestOther::zeroDiv1
    
     

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.