This repository was archived by the owner on Feb 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/unittest_runner/unittest_runner Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ The current patches are:
13
13
All Python Lab programs are prefixed with ` setup_pythonlab() ` , the method this package exposes, which only applies
14
14
the matplotlib patch for now.
15
15
16
+ ## unittest_runner
17
+ This tests adds some customization to the output of unit tests, and has a function to either run validation tests
18
+ (more customized) or student tests (less customized).
19
+
16
20
## Setup
17
21
- Install ` pyenv ` .
18
22
- See instructions [ here] ( https://github.com/pyenv/pyenv?tab=readme-ov-file#getting-pyenv )
Original file line number Diff line number Diff line change 1
1
import unittest
2
2
from .validation_runner import ValidationTestResult
3
3
4
+ # Run the tests in the given file pattern and display the results to the user.
5
+ # Validation tests use the ValidationTestResult class to display only the short description of the test.
4
6
def run_validation_tests (file_pattern ):
5
7
run_tests (file_pattern , ValidationTestResult )
6
8
9
+ # Run the tests in the given file pattern and display the results to the user.
10
+ # Student tests use the standard TextTestResult class to display the test name and short description.
7
11
def run_student_tests (file_pattern ):
8
12
run_tests (file_pattern , unittest .TextTestResult )
9
13
You can’t perform that action at this time.
0 commit comments