Description
A custom test runner for python unittest which provides the following additional features: - custom result stream output in a more detailed, clear format with distinct sections for errors, failures, skipped test, overall suite results, and totals - all results are output to a json file allowing the results to easily be parsed and used for post-processing purposes and integrations with other services - automatic detection of screenshots (based on a screenshot directory argument) which are attached to the matching case result dict in the json results file - detailed time tracking at the case, suite, and overall level - ability to combine results from previous runs - config file can be passed with additional information for more customization (currently can provide a device_name key in the config to specify which devices to run a selenium or appium test for example with)
Installation
pip install custom_text_test_runner
Usage
import unittest
from custom_text_test_runner import CustomTextTestRunner
test_modules = unittest.defaultTestLoader.discover(start_dir='path/to/testdir', pattern='test*.py', top_level_dir=None)
return_code = CustomTextTestRunner(
verbosity=5,
results_file_path='path/to/result.json',
result_screenshots_dir='path/to/screenshots',
show_previous_results=True).run(test_modules).returnCode()
Metadata
Release files for custom_text_test_runner 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| custom_text_test_runner-0.1.5.tar.gz | 7.8 kB | Without provenance | Details |
Release files / custom_text_test_runner-0.1.5.tar.gz
| Download URL | custom_text_test_runner-0.1.5.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a63c99193b0e49ee691eef3e7af59444e02030e318820b7617b09831fbb0f7f
|
|
BLAKE2b-256 checksum How to use checksums |
14b3305d467a4485e67fecb4d16017b87b8c0173689136f28b482f832b809ae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for custom_text_test_runner 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.