Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit 80bd30c

Browse files
committed
add documentation
1 parent 8ef846c commit 80bd30c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ The current patches are:
1313
All Python Lab programs are prefixed with `setup_pythonlab()`, the method this package exposes, which only applies
1414
the matplotlib patch for now.
1515

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+
1620
## Setup
1721
- Install `pyenv`.
1822
- See instructions [here](https://github.com/pyenv/pyenv?tab=readme-ov-file#getting-pyenv)

packages/unittest_runner/unittest_runner/run_tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import unittest
22
from .validation_runner import ValidationTestResult
33

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.
46
def run_validation_tests(file_pattern):
57
run_tests(file_pattern, ValidationTestResult)
68

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.
711
def run_student_tests(file_pattern):
812
run_tests(file_pattern, unittest.TextTestResult)
913

0 commit comments

Comments
 (0)