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 --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


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

Uploaded Source

Built Distribution

core_tests-1.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for core_tests-1.1.1.tar.gz
Algorithm Hash digest
SHA256 89c0301a3ce8251411f2047f037a63a47c310fd8617bdf7c3081a9c6fe8004fc
MD5 2cd9add795321bf9663906db4f455c2f
BLAKE2b-256 c51cbcaee78fac405d2ba75ccfec78c832c5487e7a244ddfba28d44c9b85a0a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: core_tests-1.1.1-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

Hashes for core_tests-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d4ee315c03c9879199c4bbb81fdc027281865dda0f40459472faaed52ecd89de
MD5 429a43436b58ef12f6fb3678c55cb12f
BLAKE2b-256 18ec0cf24b94d2ced81fbdaef61d2dd9421e73136389ee410d88cee9a9e05cea

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