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:
  1. 1.
    Create a compilation rubric category.
  2. 2.
    Create a new AutoTest level and add the compilation category in this level.
  3. 3.
    Use a Run Program step to check whether compilation was successful (e.g. by checking if the compiled files exist).
  4. 4.
    Save this category and create a new AutoTest level to put all your other test categories.
  5. 5.
    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.
  1. 1.
    Create a Run Program step with the compilation command.
  2. 2.
    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.