Previous Topic Next topic Print topic


Test Fixture Files

When you run a test suite from the Visual COBOL command line prompt, you have to enter the test run options each time it is run. To set those options so you do not have to enter them each time the test suite is run, use a test fixture file (.mfu file).

If you use a text fixture file, you can also apply additional information on an individual test case basis.

The plain-text file can contain a Global section for options that are applied to all test cases. It also contains a section for each test case, in which you specify the additional options to be used when that test case is run, such as a test description, a timeout period (before the test is considered to have failed), and an option to skip the test.

See Example Test Fixture File for a sample format. Alternatively, you can create a skeleton .mfu file from a COBOL .dll file, by using the -generate-mfu test-suite-name option, and then edit it to suit your needs.

See Using Dynamic Metadata for an alternative way to specifying the metadata for a test case.

Previous Topic Next topic Print topic