Skip to main content

pytest plugin for testing executables

Project description

https://img.shields.io/pypi/l/pytest-executable.svg https://img.shields.io/pypi/v/pytest-executable.svg https://img.shields.io/conda/vn/conda-forge/pytest-executable https://img.shields.io/pypi/pyversions/pytest-executable.svg https://img.shields.io/badge/platform-linux%20%7C%20macos-lightgrey Read The Docs Status Travis-CI Build Status Codecov coverage report https://img.shields.io/badge/code%20style-black-000000.svg

pytest-executable is a pytest plugin for simplifying the black-box testing of an executable, be it written in python or not. It helps to avoid writing the boilerplate test code to:

  • define the settings of a test case in a yaml file,

  • spawn a subprocess for running an executable,

  • reorder the tests properly either for a single test case or across several test cases,

  • handle the outputs and references directory trees,

  • provide convenient fixtures to customize the checking of the outcome of an executable.

It integrates naturally with standard test scripts written for pytest.

This plugin is originally intended for testing executables that create scientific data but it may hopefully be helpful for other kinds of executables. This project is still young, but already used in a professional environment.

Documentation

The project documentation and installation instructions are available online.

Contributing

A contributing guide will be soon available (just a matter of free time).

Please fill an issue on the Github issue tracker for any bug report, feature request or question.

Authors

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

pytest-executable-0.5.2.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

pytest_executable-0.5.2-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file pytest-executable-0.5.2.tar.gz.

File metadata

  • Download URL: pytest-executable-0.5.2.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pytest-executable-0.5.2.tar.gz
Algorithm Hash digest
SHA256 8010f19286a210120b28316b1433a859f8b95287f23eb6c5715b43f19ef0e66a
MD5 e4a31c8c646cc672c479cfe256a05a08
BLAKE2b-256 382c859fbb2140acde767b6a94f315ab1bcbebf9c2877691e1429fad6f06a55c

See more details on using hashes here.

File details

Details for the file pytest_executable-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: pytest_executable-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pytest_executable-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6f037e9bfc6ea0519c23fb69f8fb837ce0a3a9429e28bbef2aee4643182b25fc
MD5 ade4704f5bfbd45d266bbc5648651077
BLAKE2b-256 39fcdc0eeb1f15a3c3fe0da807c2b4d668371792bd85215a2b8203ea9cd7a783

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