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 --test-type unit
python manager.py run-tests --test-type integration
python manager.py run-tests --test-type "another folder that contains test cases under ./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
Release history Release notifications | RSS feed
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.1.2.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file core_tests-1.1.2.tar.gz
.
File metadata
- Download URL: core_tests-1.1.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df4bf1502d4581afd8448bc814a35360cde7539776a551135376f6748d59564b |
|
MD5 | bf78078a38157c80e7c0e1557f26da42 |
|
BLAKE2b-256 | 8ce06317f320a462d82274fbe900e6cb8642077ee56efd0ca0a587138f321936 |
File details
Details for the file core_tests-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: core_tests-1.1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce3ed5da94748d236f281d2211333107a5ffc54a31ae8daf1d0e27c084ed3f38 |
|
MD5 | c1289f3f43eee907838b556d64c348ea |
|
BLAKE2b-256 | 90b2377bf508df4d264b7b48cd8f94616633ed9ee8f13b63bff7d9c81181cd12 |