Where do I compile students' code?
We recommend two different ways to compile students' code. Which one to use depends on the application.
1. Using the per-student setup script
If you want to use the compiled code in multiple categories, we recommend using the per-student setup script for compiling. Either use a compilation script, which you upload as a fixture, or input the compilation command directly in the input field.
If you want to stop AutoTest when the compilation fails, you can do this in the following way:
Create a compilation rubric category.
Create a new AutoTest level and add the compilation category in this level.
Use a Run Program step to check whether compilation was successful (e.g. by checking if the compiled files exist).
Save this category and create a new AutoTest level to put all your other test categories.
Set the Only execute further levels to 100%.
2. Using a Run Program step and Checkpoint step
If you only want to use the compiled code in one category (e.g. when every category has a different program), we recommend using a Run Program step combined with a Checkpoint to compile the code.
Create a Run Program step with the compilation command.
Create a Checkpoint step right below the Run Program step and set it to 100%.
In this way, the category will stop testing if the Run Program step fails.
Last updated