Previous Topic Next topic Print topic


Examples

Running test suites

The following command runs all test cases in myFullTestsuite, using the default options:

Windows:

mfurun myFullTestsuite.dll

UNIX:

cobmfurun32 myFullTestsuite.so

The following command only runs the mySecondTestcase test case within the test suite, producing verbose output:

Windows:

mfurun -testcase:mySecondTestcase -verbose myFullTestsuite.dll

UNIX:

cobmfurun32 -testcase:mySecondTestcase -verbose myFullTestsuite.so

The following command runs all test cases in myFullTestsuite and produces a JUnit-style report (.xml file), and also produces a core dump file for each test case that encounters an error:

Windows:

mfurun -report:junit -jit:core myFullTestsuite.dll

UNIX:

cobmfurun64 -report:junit -jit:core myFullTestsuite64.so

The following command runs all test cases in myFulltestsuite, and invokes just-in-time debugging each time a test case encounters an error. The test run continues when the debugger is closed:

Windows:

mfurun -jit:debug myFulltestsuite.dll

UNIX:

cobmfurun32 -jit:debug myFulltestsuite.so

The following command runs all test cases in myFulltestsuite, ignoring any errors encountered:

Windows:

mfurun -ignore-return-code:true myFulltestsuite.dll

UNIX:

cobmfurun32 -ignore-return-code:true myFulltestsuite.so

Creating and running test fixture files

The following command produces an .mfu file with the same base name as the test suite file:

Windows:

mfurun -generate-mfu myFulltestsuite.dll

UNIX:

cobmfurun32 -generate-mfu myFulltestsuite.so

The following command runs all test cases in the test fixture file:

Windows:

mfurun myFulltestsuite.mfu

UNIX:

cobmfurun32 myFulltestsuite.mfu

The following command runs all test cases in the test fixture file, but any options in the .mfu are ignored:

Windows:

mfurun -ignore-options-in-mfu:true myFulltestsuite.mfu

UNIX:

cobmfurun32 -ignore-options-in-mfu:true myFulltestsuite.mfu
Previous Topic Next topic Print topic