Skip to content

Adding tests for single-step exercises

For single-step exercises, you need to specify in the exercise-config.json file for the exercise which tests to apply to check a learner's solution to the exercise. To add tests:

  1. Open CODE > exercises > {the exercise you need}.
  2. Click exercise-config.json and in the editor pane add the "tests" parameter with the respective test files specified.

Example

"tests": [

"leap_tests1.py", "leap_tests2.py"

]