Skip to content
Snippets Groups Projects
Commit 34a7f9a4 authored by tuhe's avatar tuhe
Browse files

Update README.md

parent 6ae94313
Branches
No related tags found
No related merge requests found
...@@ -32,5 +32,15 @@ python report1_grade.py ...@@ -32,5 +32,15 @@ python report1_grade.py
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:
```
sadf
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment