Project description
pytest-integration
Overview
Plugin for 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,
then code coverage is disabled for all integration tests, since unit tests
are supposed to cover all the code.
Added pytest markers
@pytest.mark.integration_test
Marks this test as a (quick) integration test
@pytest.mark.slow_integration_test
Marks this test as a slow integration test
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pytest_integration-0.2.2.tar.gz
.
File metadata
-
Download URL: pytest_integration-0.2.2.tar.gz
- Upload date:
-
Size: 3.0 kB
- Tags: Source
-
Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.9
File hashes
Hashes for pytest_integration-0.2.2.tar.gz
Algorithm |
Hash digest |
|
SHA256 |
7630b2bb1a8d518168bae44d827c20c4f0c1bbc5a1d3e1014dc5624ccadcdbd1
|
|
MD5 |
b0a8098645934d4aec1a69089a7f7cd7
|
|
BLAKE2b-256 |
3f68d05929a7b205e0ac1b06c2895356eac6b127ac2537c16e112f2a6e209101
|
|
See more details on using hashes here.
File details
Details for the file pytest_integration-0.2.2-py3-none-any.whl
.
File metadata
-
Download URL: pytest_integration-0.2.2-py3-none-any.whl
- Upload date:
-
Size: 4.3 kB
- Tags: Python 3
-
Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.9
File hashes
Hashes for pytest_integration-0.2.2-py3-none-any.whl
Algorithm |
Hash digest |
|
SHA256 |
560b18c003cf6a3d6672878e826a823ea5f8d1d289dbe97546495040b2f0bd3d
|
|
MD5 |
a1ed70bdf38b7579e720f1fdb70d078b
|
|
BLAKE2b-256 |
fce39eedec116e74c22687e55ed3143a223bae17dbd785eae92a968596ba14c8
|
|
See more details on using hashes here.