Only run tests under certain criteria

Only run your tests if they meet a certain criteria using the "Run-if" block

In many cases an assignment may have a base requirement for the submission to pass. In the case this requirement isn't met, no further tests should be run so as to prevent the student from scoring any more points.

This is simple to do in AutoTest v2 and can be done using the "Run if" block.

How to use the Run-if block in your AutoTest configuration:

  1. Navigate to the Tests portion of the AutoTest settings.

  2. Create the tests on which the condition to run are dependent (eg. a compile step) and connect them to a rubric.

  3. Click the Run-if block to add it to the bottom of your AutoTest configuration or drag-and-drop it to the desired location.

  4. Nest the test blocks that you want to prevent from running inside the Run-if block

  5. Select the condition which determines whether the tests should be run or not.

  6. Finally, select the rubric category which is connected to the tests on which the condition to run are dependent on.

Last updated