Test Results
i | Unit Test | Score | Notes | Output |
---|---|---|---|---|
1 | ID: 239eadbc Label: test square Target(s): square | 1.0 / 1.0 | ✅ passed | stdoutFOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOstderr |
2 | ID: f03691ea Label: test cube Target(s): cube | 2.5 / 2.5 | well done 👌 | stdoutstderrcube |
3 | ID: 35797fb2 Label: test abs_cube Target(s): abs_cube | 2.0 / 3.0 | ¯\_(ツ)_/¯ partially passed | stdoutstderr |
4 | ID: 7e0e6ff3 Label: test constant Target(s): SOME_CONSTANT | 1.0 / 2.0 | at least you declared it 🥴 | stdoutstderr |
5 | ID: 90f0231e Label: test square & cube Target(s): square,cube | 1.0 / 1.0 | ✅ passed | stdoutstderr |
6 | ID: 85f2e613 Label: test failure Target(s): fail | 0 / 1.5 | ❌ ValueError: "no chance, this function crashes so badly" | stdoutstderrTest failed: Traceback (most recent call last): File "/opt/conda/lib/python3.9/site-packages/autograde/notebook_test.py", line 48, in __call__ result = self._test_function(*targets, *args, **kwargs) File "/home/jovyan/work/jupyter-autograde/demo/test.py", line 65, in test_fail fail() File "/tmp/tmp5crfyffw", line 13, in fail raise ValueError('no chance, this function crashes so badly') ValueError: no chance, this function crashes so badly |
7 | ID: 95cf4e22 Label: test negative score Target(s): fail | -0.5 / 1.0 | ¯\_(ツ)_/¯ partially passed | stdoutstderr |
8 | ID: 511d0ac7 Label: test import filter Target(s): illegal_import | 0.5 / 0.5 | ✅ passed | stdoutstderr |
9 | ID: 53bca0ce Label: test global timeout Target(s): sleep | 0 / 1 | ❌ TimeoutError: "code execution took longer than 0.100s to terminate" | stdoutstderrTest failed: Traceback (most recent call last): File "/opt/conda/lib/python3.9/site-packages/autograde/notebook_test.py", line 48, in __call__ result = self._test_function(*targets, *args, **kwargs) File "/opt/conda/lib/python3.9/contextlib.py", line 122, in __exit__ if type is None: File "/opt/conda/lib/python3.9/contextlib.py", line 122, in __exit__ if type is None: File "/opt/conda/lib/python3.9/site-packages/autograde/util.py", line 202, in _localtrace raise TimeoutError(f'code execution took longer than {timeout:.3f}s to terminate') TimeoutError: code execution took longer than 0.100s to terminate |
10 | ID: 6d1546e0 Label: test local timeout Target(s): sleep | 0 / 1 | ❌ TimeoutError: "code execution took longer than 0.060s to terminate" | stdoutstderrTest failed: Traceback (most recent call last): File "/opt/conda/lib/python3.9/site-packages/autograde/notebook_test.py", line 48, in __call__ result = self._test_function(*targets, *args, **kwargs) File "/opt/conda/lib/python3.9/contextlib.py", line 122, in __exit__ if type is None: File "/opt/conda/lib/python3.9/contextlib.py", line 122, in __exit__ if type is None: File "/opt/conda/lib/python3.9/site-packages/autograde/util.py", line 202, in _localtrace raise TimeoutError(f'code execution took longer than {timeout:.3f}s to terminate') TimeoutError: code execution took longer than 0.060s to terminate |
11 | ID: ce7ad25b Label: inspect source Target(s): square | 1.0 / 1.0 | ✅ passed | stdoutdef square(x: float) -> float: return x ** 2stderr |
12 | ID: 81b637d8 Label: Bob Target(s): __COMMENTS__ | nan / 4 | [MATCH 1]: **A1:** The answer, my friend, is blowin' in the wind. The answer is blowin' in the wind. | stdoutstderr |
13 | ID: a0ec927b Label: Douglas Target(s): __COMMENTS__ | nan / 1 | [MATCH 1]: **A2:** 42 (forty-two) | stdoutstderr |
14 | ID: a03b221c Label: ??? Target(s): __COMMENTS__ | 0 / 2.5 | ❌ AssertionError: "no matching comments found" | stdoutstderrTest failed: Traceback (most recent call last): File "/opt/conda/lib/python3.9/site-packages/autograde/notebook_test.py", line 48, in __call__ result = self._test_function(*targets, *args, **kwargs) File "/opt/conda/lib/python3.9/site-packages/autograde/notebook_test.py", line 140, in search_comment assert len(comments) > 0, 'no matching comments found' AssertionError: no matching comments found |
15 | ID: f81f7128 Label: plot PNG Target(s): __ARTIFACTS__ | nan / 1 | stdoutstderr | |
16 | ID: affcf4c8 Label: file not found Target(s): __ARTIFACTS__ | 0 / 1 | ❌ FileNotFoundError: "[Errno 2] No such file or directory: 'artifacts/does_not_exist.png'" | stdoutstderrTest failed: Traceback (most recent call last): File "/opt/conda/lib/python3.9/site-packages/autograde/notebook_test.py", line 48, in __call__ result = self._test_function(*targets, *args, **kwargs) File "/opt/conda/lib/python3.9/site-packages/autograde/notebook_test.py", line 174, in load_plot return math.nan, prefix + base64.b64encode(artifacts[target]).decode('utf8') File "/opt/conda/lib/python3.9/site-packages/autograde/notebook_executor.py", line 39, in __getitem__ with self._root.joinpath(path).open(mode='rb') as f: File "/opt/conda/lib/python3.9/pathlib.py", line 1242, in open return io.open(self, mode, buffering, encoding, errors, newline, File "/opt/conda/lib/python3.9/pathlib.py", line 1110, in _opener return self._accessor.open(self, flags, mode) FileNotFoundError: [Errno 2] No such file or directory: 'artifacts/does_not_exist.png' |
17 | ID: d376512f Label: raw artifact Target(s): __ARTIFACTS__ | 1.0 / 1.0 | the following was read from a file: "let's leave some artifacts in the system" | stdoutstderr |
18 | ID: a814e911 Label: special variables Target(s): __CONTEXT__,__TEAM_MEMBERS__,__COMMENTS__ | 1.0 / 1.0 | ✅ passed | stdoutHello Alice Hello Bob the tested notebook has 20 commentsstderr |
18 | nan / 27.0 | 7 passed, 6 failed, 3 pending |