Metadata-Version: 2.1
Name: pytest-integration
Version: 0.1.0rc1
Summary: Organizing pytests by integration or not
Home-page: https://github.com/jbwdevries/pytest-integration
Author: Johan B.W. de Vries
Author-email: jbwdevries@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Framework :: Pytest
Requires-Python: >=3.6
Description-Content-Type: text/markdown

pytest-integration
==================

Overview
--------
Plugin for [pytest](https://pypi.org/project/pytest/) to mark tests as
integration or slow integration.

Integration tests are run after normal tests (unit tests) and
slow integration tests are run after (quick) integration tests.

If a unit test fails, (quick) integration and slow integration tests are not run.

If a (quick) integration tests fails, slow integration tests are not run.

If you have also installed [pytest-cov](https://pypi.org/project/pytest-cov/),
then code coverage is disabled for all integration tests, since unit tests
are supposed to cover all the code.

Added pytest markers
--------------------------

Added pytest command line options
--------------------------
- `--with-integration` Run (quick) integration tests (default)
- `--with-slow-integration` Run slow integration tests (default)
- `--integration-cover` Let integration tests contribute to coverage

`with` options also have a `without` variant.

Example
-------
See the example directory. Examples of how to run are in the Makefile.


