This release is a pre-release and may not be stable for production use.
mpunittest
Installation
To install the latest release from PyPI, simply run:
pip install mpunittest
Or to install the latest development version, run:
git clone https://github.com/maximilianpilz/mpunittest python -m pip install .
Quick Start
An example for running with 10 workers and generating an html file containing the results:
merging_runner = mpunittest.runner.MergingRunner(process_count=10)
merging_runner.discover_and_run(
start_dir=pathlib.Path('path_to_search_in').resolve(),
pattern="*.py",
html_result_assets=mpunittest.runner.HtmlResultAssets(
document_title='title of the html',
document_file_name='name_of_the_html_file',
result_path='unittest_results'
)
)
An example for running with 10 workers and without any files being generated:
merging_runner = mpunittest.runner.MergingRunner(process_count=10)
result = merging_runner.discover_and_run(
start_dir=pathlib.Path('path_to_search_in').resolve(),
pattern="*.py"
)
print(result)
An example for turning on logging:
handler = logging.StreamHandler()
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler.setFormatter(formatter)
handler.setLevel(logging.INFO)
mpunittest.logging.logger.addHandler(handler)
# run tests here
mpunittest.logging.logger.getChild('your.script').info('result: %s', result)
An example for running without writing additional python code:
python -m mpunittest.run /Users/yourname/dev/python_projects/yourproject/src/tests -p "test*.py" -da -c 4
To see the help for running without writing additional python code:
python -m mpunittest.run --help
Licensing
Copyright (C) 2023 Maximilian Pilz
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Metadata
Release files for mpunittest 0.0.0a6
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 | Actions |
|---|---|---|---|---|
| mpunittest-0.0.0a6.tar.gz | 21.7 kB | Without provenance | Details for mpunittest-0.0.0a6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mpunittest-0.0.0a6-py3-none-any.whl | Python 3 | none | any | Details for mpunittest-0.0.0a6-py3-none-any.whl |
Total release size: 54.9 kB
Release files / mpunittest-0.0.0a6.tar.gz
| Download URL | mpunittest-0.0.0a6.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2a89d7d82250654dd734030add7ba9aa795886e358f031cbd29c2400772ac94
|
|
BLAKE2b-256 checksum How to use checksums |
f82cc379aa7be08e5550a7220a3fb1f1cd5c4d1bfdd556670252ade813da2d22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / mpunittest-0.0.0a6-py3-none-any.whl
| Download URL | mpunittest-0.0.0a6-py3-none-any.whl |
|---|---|
| Size | 33.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b386952b65c64555f0633dc5b467e79f654e1308dcf38ef3e924a752cb1f8cb6
|
|
BLAKE2b-256 checksum How to use checksums |
8f320575fa54fe8804ba2d6455d4af64d2c46af4d4737efc8c166e13a95fd46c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for mpunittest 0.0.0a6
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.