This generates a file `report1.token` which they upload to campusnet or any other file sharing service.
This generates a file `report1.token` which they upload to campusnet or any other file sharing service.
This file contains the results of the report evaluation, the script output, and so on.
This file contains the results of the report evaluation, the script output, and so on.
## What it looks like to a teacher
## How to develop tests
A unittest consist of three things: The result of the users code, the expected result, and a comparison of the two which may either fail or succeed.
for the comparison I build on top of pythons `unittest` framework to obtain a wide variety of well-documented comparisons.
To get the expected result, one option is to specify it yourself, however the recommended (and much easier option) is to maintain a working branch of the code where all the funtionality the students must implement works, and then use
the output of that branch as the *expected output* in the test.
To see how this works, consider the following minimal example: