A unittest shim to make PDB debugging of test cases easy.
Project description
pdbtest
Usage
python -m pdbtest [module]
(after the pattern of python -m unittest [module])
Description
pdbtest
shims the unittest test runner machinery to, when a test fails due to
an exception, print some information about the TestCase
and test_method
, and
then launch the PDB interactive debugger, affording you the opportunity to
easily examine the failure.
The library also provides a PDBRunnerMixin
class that you can mix in to your
test runner to achieve the same effect, and a modified TestProgram
that will
automatically shim the runner you provide and can be used in the same way as
unittest.TestProgram
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pdbtest-1.5.tar.gz
.
File metadata
- Download URL: pdbtest-1.5.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 937f13d7ec0c30189298f0a58578731932e193137f8ed52db50773ffdaa6bd33 |
|
MD5 | 93c4c609345ed197825f8f8a4c1b530b |
|
BLAKE2b-256 | 35b372eb02ad353c520b089ae2bb316b365d38c78abcd34ae9387ed5549bde61 |
File details
Details for the file pdbtest-1.5-py3-none-any.whl
.
File metadata
- Download URL: pdbtest-1.5-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3496a8593b79a3ffc5f38c4659530392987fcde9fe62a1849f37283ad43e1bfc |
|
MD5 | 0b4a4a59e33061c1b4855ffc797f866e |
|
BLAKE2b-256 | 22b4ab8bdac49098088bb4dfefc9e532f8159497a819141e23eabe1ea22afd13 |