Tests grouping and ordering

2007-02-04
2013-04-22
  • Mateusz Loskot

    Mateusz Loskot - 2007-02-04

    Hi,

    Could anyone give me some hints about best practice about tests grouping and ordering?
    I'm thinking about hierarchies of tests, or something like that.

    For example, I have class A and class B.
    The suite for class A - TestA - tests base set of features, ie. stating, opening and closing a file.
    Next, the suite for class B - TestB - tests set of specific features, ie. formating, writing, reading, parsing data to/from a file.

    Ideally, I'd like to not to run tests from the TestB if tests from the TestA fail.

    Is anything like this supported by CppUnit ?

    --
    Mateusz Loskot

     
    • otmane

      otmane - 2007-07-31

      Hi, you can for example create a CppUnit::TestSuite for your A Tests, and onether TestSuite For B Tests
      and with a booléan for example if(testSuccess) run the B TestSuite else u don't run the tests.
      I hope this will help u.

      Otmane.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks