This release is a pre-release and may not be stable for production use.
pytest-filemarker
A pytest plugin that runs marked tests when files change.
Usage
Files should have a PYTEST_MARKS variable containing a list of marked tests to run when the files change.
PYTEST_MARKS = ['markone', 'marktwo']
class MyClass:
...
When this file has changed, any tests with marks markone or marktwo will be run.
To invoke the plugin, run:
pytest --filemarker-active
By default, the plugin will use git to look at the changes between HEAD and HEAD~1 to generate a list of files to inspect. To override this, use the --filemarker-files parameter:
pytest --filemarker-files=FILE1,FILE2
Options
filemarker:
--filemarker-active Should the plugin be active? Automatically set to True
if other options are specified.
--filemarker-files=FILE1,FILE2
Files to search. If not supplied will look at the latest
changes from git.
--filemarker-variable=VARIABLE
Variable which contains a list of marks. Defaults to
PYTEST_MARKS
filemarker-variable can also be set wherever you configure pytest (e.g. pytest.ini).
Release files for pytest-filemarker 0.1.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-filemarker-0.1.0rc1.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_filemarker-0.1.0rc1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / pytest-filemarker-0.1.0rc1.tar.gz
| Download URL | pytest-filemarker-0.1.0rc1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
729b088ed2f0416d9ee2859a399f5434995ee0dbafe41b1d644654678888b55c
|
|
BLAKE2b-256 checksum How to use checksums |
e2363be40d1d6821076da1fdc1b7a1180ddd2ffc214c2a44d4535846ddb98b00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|
Release files / pytest_filemarker-0.1.0rc1-py3-none-any.whl
| Download URL | pytest_filemarker-0.1.0rc1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dfeb70f0bd73b78bae297f0f0f08366a581b2aac8889b766f1e0a08ec4772a1
|
|
BLAKE2b-256 checksum How to use checksums |
fa7d387e3eb8be0c681dd1ac3ba63fea3d10ebdb39a11d7ca469302872c9d1d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|