Skip to main content

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.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

core_tests-1.0.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file core_tests-1.0.4.tar.gz.

File metadata

  • Download URL: core_tests-1.0.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for core_tests-1.0.4.tar.gz
Algorithm Hash digest
SHA256 46520d9d106350d6d349d886de26a98d7ed25ef0bd65b1b0afeb056adfb6c05a
MD5 5e45351020f2ef0df39124964e2c67e3
BLAKE2b-256 6e6c7262caf60f7352d67aa74be765b66fd1042b0fe77278225e60e1dc9ded4c

See more details on using hashes here.

File details

Details for the file core_tests-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: core_tests-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for core_tests-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 09dab5f8de98113d89971c1bf75cadc4297ee8bdfe36c297fd33ec349170c0d9
MD5 4ed7c8966016a89e8b38c08e9777e2be
BLAKE2b-256 b221ac5925101baff7c78febbbf3132e95ed3e29943a03852345ff3a720e28e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page