Skip to content
Snippets Groups Projects
Commit 1a298ca8 authored by tuhe's avatar tuhe
Browse files

Updated docs to include description of Autolab

parent 41a83a7b
No related branches found
No related tags found
No related merge requests found
......@@ -217,83 +217,34 @@ class Week1Titles(UTestCase):
When this is run, the titles are shown as follows:
```terminal
_ _ _ _ _____ _
| | | | (_) | | __ \ | |
| | | |_ __ _| |_| | \/_ __ __ _ __| | ___
| | | | '_ \| | __| | __| '__/ _` |/ _` |/ _ \
| |_| | | | | | |_| |_\ \ | | (_| | (_| | __/
\___/|_| |_|_|\__|\____/_| \__,_|\__,_|\___| v0.1.17, started: 20/09/2021 19:01:29
\___/|_| |_|_|\__|\____/_| \__,_|\__,_|\___| v0.1.17, started: 20/09/2021 18:56:39

CS 102 Report 2 
Question 1: Week1
Question 1: Week1: 0%| | [00:00<?]

Question 1: Week1 

* q1.1) test_add: 0%| | [00:00<?]

 * q1.1) test_add...................................................................................................PASS

* q1.2) test_reverse: 0%| | [00:00<?]

 * q1.2) test_reverse...............................................................................................PASS

* q1.3) test_output_capture: 0%| | [00:00<?]

 * q1.3) test_output_capture........................................................................................PASS
 * q1) Total.................................................................................................... 10/10
 
Question 2: The same problem as before with nicer titles
Question 2: The same problem as before with nicer titles: 0%| | [00:00<?]

Question 2: The same problem as before with nicer titles 

* q2.1) Test the addition method add(a,b): 0%| | [00:00<?]

 * q2.1) Test the addition method add(a,b)..........................................................................PASS

* q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]: 0%| | [00:00<?]

 * q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]............................................................PASS
 * q2) Total...................................................................................................... 6/6
 
Total points at 18:56:39 (0 minutes, 0 seconds)....................................................................16/16

Including files in upload...
 * cs102
> Testing token file integrity...
CS 102 Report 2
Question 1: Week1
* q1.1) test_add...................................................................................................PASS
* q1.2) test_reverse...............................................................................................PASS
* q1.3) test_output_capture........................................................................................PASS
* q1) Total.................................................................................................... 10/10
Done!
Question 2: The same problem as before with nicer titles
* q2.1) Test the addition method add(a,b)..........................................................................PASS
* q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]............................................................PASS
* q2) Total...................................................................................................... 6/6
 
Total points at 19:01:29 (0 minutes, 0 seconds)....................................................................16/16
To get credit for your results, please upload the single unmodified file: 
Including files in upload...
* cs102
> Testing token file integrity...
Done!
> C:\Users\tuhe\Documents\unitgrade_private\examples\example_framework\instructor\cs102\Report2_handin_16_of_16.token
To get credit for your results, please upload the single unmodified file:
> C:\Users\tuhe\Documents\unitgrade_private\examples\example_framework\instructor\cs102\Report2_handin_16_of_16.token

```
What happens behind the scenes when we set `self.title` is that the result is pre-computed on the instructors machine and cached. This means the last test will display the correct result regardless of how `reverse_list` has been implemented by the student. The titles are also shown correctly when the method is run as a unittest.
......
......@@ -29,8 +29,12 @@ if __name__ == "__main__":
import os
import subprocess
# with Capturing2() as c:
out = subprocess.check_output("cd ../examples/example_framework/instructor && python -m cs102.report2_grade", shell=True)
out = out.decode("utf-8")
# out = subprocess.check_output("cd ../examples/example_framework/instructor && python -m cs102.report2_grade", shell=True)
out = subprocess.check_output("cd ../examples/example_framework/instructor && python -m cs102.report2_grade --noprogress", shell=True, encoding='utf8', errors='strict')
out = out.replace("", "")
out = out.replace("[0m", "")
# out = out.decode("utf-8")
with open("snips/deploy.txt", 'w') as f:
f.write(out)
# os.system("cd ../examples/example_framework/instructor && python -m cs102.report2_grade")
......
......@@ -3,27 +3,26 @@
| | | |_ __ _| |_| | \/_ __ __ _ __| | ___
| | | | '_ \| | __| | __| '__/ _` |/ _` |/ _ \
| |_| | | | | | |_| |_\ \ | | (_| | (_| | __/
\___/|_| |_|_|\__|\____/_| \__,_|\__,_|\___| v0.1.17, started: 20/09/2021 18:57:44

CS 102 Report 2 
Question 1: Week1 Question 1: Week1: 0%| | [00:00<?]  Question 1: Week1 
 * q1.1) test_add: 0%| | [00:00<?]   * q1.1) test_add...................................................................................................PASS
 * q1.2) test_reverse: 0%| | [00:00<?]   * q1.2) test_reverse...............................................................................................PASS
 * q1.3) test_output_capture: 0%| | [00:00<?]   * q1.3) test_output_capture........................................................................................PASS
 * q1) Total.................................................................................................... 10/10
 
Question 2: The same problem as before with nicer titles Question 2: The same problem as before with nicer titles: 0%| | [00:00<?]  Question 2: The same problem as before with nicer titles 
 * q2.1) Test the addition method add(a,b): 0%| | [00:00<?]   * q2.1) Test the addition method add(a,b)..........................................................................PASS
 * q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]: 0%| | [00:00<?]   * q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]............................................................PASS
 * q2) Total...................................................................................................... 6/6
 
Total points at 18:57:44 (0 minutes, 0 seconds)....................................................................16/16

Including files in upload...
 * cs102
> Testing token file integrity...
Done!
 
To get credit for your results, please upload the single unmodified file: 
> C:\Users\tuhe\Documents\unitgrade_private\examples\example_framework\instructor\cs102\Report2_handin_16_of_16.token

\ No newline at end of file
\___/|_| |_|_|\__|\____/_| \__,_|\__,_|\___| v0.1.17, started: 20/09/2021 19:01:38
CS 102 Report 2
Question 1: Week1
* q1.1) test_add...................................................................................................PASS
* q1.2) test_reverse...............................................................................................PASS
* q1.3) test_output_capture........................................................................................PASS
* q1) Total.................................................................................................... 10/10
Question 2: The same problem as before with nicer titles
* q2.1) Test the addition method add(a,b)..........................................................................PASS
* q2.2) Checking if reverse_list([1, 2, 3]) = [3, 2, 1]............................................................PASS
* q2) Total...................................................................................................... 6/6
Total points at 19:01:38 (0 minutes, 0 seconds)....................................................................16/16
Including files in upload...
* cs102
> Testing token file integrity...
Done!
To get credit for your results, please upload the single unmodified file:
> C:\Users\tuhe\Documents\unitgrade_private\examples\example_framework\instructor\cs102\Report2_handin_16_of_16.token
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment