This project contains basic elements for testing purposes and the ability
Project description
core-tests
This project contains basic elements for testing purposes and the ability
to run (via console commands) tests and code coverage (unittest-based). This way, we can
stick to the DRY -- Don't Repeat Yourself
principle...
How to Use
pip install core-tests
# manager.py
from click.core import CommandCollection
from core_tests.tests.runner import cli_tests
if __name__ == "__main__":
cli = CommandCollection(sources=[cli_tests()])
cli()
python manager.py run-tests
python manager.py run-coverage
Execution Environment
Install libraries
pip install --upgrade pip
pip install virtualenv
Create the Python Virtual Environment.
virtualenv --python=python3.11 .venv
Activate the Virtual Environment.
source .venv/bin/activate
Install required libraries.
pip install .
Check tests and coverage...
python manager.py run-tests
python manager.py run-coverage
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
core-tests-1.0.3.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for core_tests-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4df9b8d9365d3d76be8ec0b2198cafaa2144f750ad60083a4e3306b6339bff3 |
|
MD5 | 21a91b2942c8cc15d2ec594699e55b38 |
|
BLAKE2b-256 | 39f9f50ad6198a980879a9210fff3276b0325d9f101d46773f9e390283b95e4a |