https://github.com/es-alexander/testrun
A Python library for tests with meaningful output and display (IDLE-compatible)
https://github.com/es-alexander/testrun
python3 unittesting-library
Last synced: 2 months ago
JSON representation
A Python library for tests with meaningful output and display (IDLE-compatible)
- Host: GitHub
- URL: https://github.com/es-alexander/testrun
- Owner: ES-Alexander
- License: mit
- Created: 2019-11-02T14:39:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-07T11:28:10.000Z (about 6 years ago)
- Last Synced: 2025-02-17T16:05:41.452Z (11 months ago)
- Topics: python3, unittesting-library
- Language: Python
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# testrun
A Python library for tests with meaningful output and display (IDLE-compatible)
_________________________________
Version: 1.0.0
Author: ES Alexander
Release Date: 07/Nov/2019
_________________________________
This testing module is intended for small-scale testing of python, including
in IDLE. Notable features include:
`TestRun`:
A base class for a test-suite, including automatic test-detection
(for methods beginning with `test_`), running all available tests or a
specified set with `run_tests`, running the tests which failed in the last
run with `run_failed_tests`, and automatic (not in IDLE) and user-generated
timeouts while testing.
`TestGroup`:
A class for grouping multiple TestRun instances as though they are a single
instance.
`Redirect`:
A class for stream redirection and multiplication, focused on stdin, stdout,
and stderr, but also usable for general file streams. Allows for capturing
printed output and simulating typed input while testing.
`MultiRedirect`:
A class for managing multiple redirections, allowing for methods to be run
simultaneously on all stored redirections.
## Usage
Install via pip, using `python3 -m pip install --upgrade testrun`.
To import the entire module, use `import testrun.TestRun as TestRun`.
Otherwise, to import one or more classes, use `from testrun.TestRun import
TestRun, Redirect`.