Child Test Files

Child test files are test files loaded by a main test file. They are useful since they can be run multiple times with different arguments.

You can load a child test file from a test file with Get, after setting up the various parameters you need to change. An example is shown in the following.

In this test two parameters fun and label are set before each loading of, the child test file.

An example of a test from the child test file is shown below.

This shows how fun is used in the actual test. It also shows how label is used in the TestID. This is important because it helps to distinguish the different invocations of the test.

You run the tests in the normal way, carrying out a launch on the parent test file. The test report shows the tests from each invocation of the child test file, using the label parameter. A typical report is shown below.

MUnit Tester