Running tests in an exercise
Before you publish your lab, you need to run tests to check that solutions to each exercise are correct and can be assessed correctly.
To run tests for an exercise:
- Save your lab.
- Click Preview.
- Wait till the learner interface opens.
- Click Start lab.
- Open the necessary exercise and instruction.
- Enter the solution to the instruction (you can copy it from the solution file in the code editor).
- Click Run. Make sure that the test is passed. If necessary, correct your input or the test file contents.
- Repeat steps 5–6 to check all solutions.
The results of a test are displayed on the following tabs on the bottom of the editor screen:
- Output — displays the test output.
- Test — displays the success message if the test is passed or details errors if the test fails.
