PyTest Plus Plugin :: extends pytest functionality
Project description
PyTest Plus Plugin :: extends pytest functionality
This plugin aims to be used to host multiple basic pytest extensions that meet the following criteria:
- Downgrade gracefully, meaning that if the plugin is removed, you will still be able to run pytest
PYTEST_REQPASS
If you define environment variable PYTEST_REQPASS=123
and at the end of the
testing the number of passed tests is
not exactly 123, pytest will return exit code 1.
This feature is aimed for CI usage in order to prevent accidental skipping of some tests. We do expect users to define this variable within their own CI job definitions. The number of tests executed is likely to be dependent on the CI job.
We discourage defining this inside places like tox.ini
because when a
developer runs tests, they are likely to endup running a different number of
tests. Also, this feature makes no sense if you try to mention a specific test.
Avoiding duplicate test function names
While pytest allows users to have the same test function names in different files, that makes it harder to identify and copy/paste the test name in order to reproduce the failure locally. That is why this plugin forces its users to avoid having the same function name anywhere in the tested project.
Release process
Releases are triggered from GitHub Releases page.
Links
Project details
Release history Release notifications | RSS feed
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-plus-0.5.0.tar.gz
.
File metadata
- Download URL: pytest-plus-0.5.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec045edf82efbc72a22fa1287c714bceb87318836c41e4cb031539e169cc7fa1 |
|
MD5 | 013f8e1eac3fafd2faf0ccac73e9b44d |
|
BLAKE2b-256 | 44d4a522e9e80fbda16a98b69e6e2a1f276c7a0f63e4e8fe481b76486c05f69a |
Provenance
File details
Details for the file pytest_plus-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_plus-0.5.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b2c4d55d8417970e092aa875ee7455e96c2591a5e84d75ea886cc5382feea13 |
|
MD5 | b00a3b64d777ee3021e9b062fac16298 |
|
BLAKE2b-256 | 35b42cf3e0c70c66581a9c7fa62b448cee9fe680373cf9d15b92f8ae497a1340 |