Skip to main content

A small test runner library for Python testing

Project description

test-runner—A Runner for Python Tests

Build Status codecov License GPL v3 Code style: black PyPI version Supported Python Versions

Running Python tests is a complicated task, as it seems that there is not standard way of doing it. test-runner implements some heuristics that try to run tests with or without coverage measuring, independent of the used testing framework.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed Python at least in version 3.6.
  • You have a recent Linux machine. The library is most likely to not work on another operating system since it is depending on benchexec for resource handling, which currently only runs on recent versions of Linux.
  • For development it is necessary to have the poetry packaging and dependency management system.

Installing Test Runner

Test Runner can be easily installed from PyPI using the pip utility:

pip install test-runner

Contributing to Test Runner

To contribute to Test Runner, follow these steps:

  1. Fork this repository.
  2. Setup a virtual environment for development using poetry: poetry install.
  3. Create a branch: git checkout -b <branch_name>.
  4. Make your changes and commit them git commit -m '<commit_message>'.
  5. Push to the original branch: git push origin <project_name>/<location>.
  6. Create the pull request.

Please note that we require you to meet the following criteria:

  • Write unit tests for your code.
  • Run linting with flake8 and pylint
  • Run type checking using mypy
  • Format your code according to the black code style

To ease the execution of the tools, we provide a Makefile with various targets. The easiest way to execute all checks is to run make check on a poetry shell. Push your commits only if they pass all checks! These tools are also executed in continuous integration on TravisCI and will also check you pull request. Failing a check will block your pull request from being merged!

Contributors

See the Contributors page for a list of contributors. Thanks to all contributors!

License

test-runner is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

test-runner is distributed in the hope that it will be useful but WITHOUT ANY WARRANT; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with test-runner. If not, see https://www.gnu.org/licenses/.

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

test-runner-0.6.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

test_runner-0.6.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file test-runner-0.6.1.tar.gz.

File metadata

  • Download URL: test-runner-0.6.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.5 Linux/5.4.2-gentoo-x86_64

File hashes

Hashes for test-runner-0.6.1.tar.gz
Algorithm Hash digest
SHA256 9eef974d8a391bc27c880674fe063303cb801317a00f76ed452d3624bbaff20e
MD5 c270519813a1e0c426612fdd18e3392e
BLAKE2b-256 845ab2cd94c5b9c7abd5a884e9e5230aa256b15eca9032c2a699b175f1a8b9b8

See more details on using hashes here.

File details

Details for the file test_runner-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: test_runner-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.5 Linux/5.4.2-gentoo-x86_64

File hashes

Hashes for test_runner-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa0fa00c74ba7cb0b513326b966c37a62cb8f6590a3f53d641b4930f7bc6c9ae
MD5 6c6eee0009375dfedd98bfd614847ffa
BLAKE2b-256 4e869db8516833b3cf62467ed14f01c27e4dcbad7fef98e0350b9842ee180e21

See more details on using hashes here.

Supported by

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