Get a count of the number of tests marked, unmarked, and unique tests if tests have multiple markers
Project description
Get a count of the number of tests marked, unmarked, and unique tests if tests have multiple markers
This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.
Features
Key |
Description |
|---|---|
total_found_items |
Total number of discovered tests |
marked_found_items |
Total number of discovered tests that are marked |
unmarked_found_items |
Total number of discovered tests that are unmarked |
single_marked_found_items |
Total number of discovered tests that only have 1 mark |
multi_marked_found_items |
Total number of discovered tests that have more than 1 mark |
unique_marked_searched_items |
Total number of tests discovered based on provided mark(s) |
single_marked_searched_items |
Total number of tests discovered based on provided mark(s) that only have 1 mark |
multi_marked_searched_items |
Total number of tests discovered based on provided mark(s) that have more than 1 mark |
“mark” |
Total number of tests discovered based on that provided mark (each mark will have its own line) |
Store values in metadata together or seperately
Requirements
See requirements.txt
Installation
You can install “pytest-mark-count” via pip from PyPI:
$ pip install pytest-mark-count
Usage
$ –mark-count=”it”
$ –mark-count=”it vt”
$ –mark-count-sep=True
Contributing
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
License
Dual License:
Distributed under the terms of both the BSD-3 AND Mozilla Public License 2.0 licenses.
“pytest-mark-count” is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_mark_count-0.5.1.tar.gz.
File metadata
- Download URL: pytest_mark_count-0.5.1.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d7bfcc9fb539a079475b599293c2d4d6291e9aa9c87e128e67980236ade9720
|
|
| MD5 |
6f81cb888a9a11fcd217b8dd25f480ac
|
|
| BLAKE2b-256 |
7f1df8782eb85ad106d5d2ba0167cfff6144a704389ee2b9eced48787ce7849c
|
Provenance
The following attestation bundles were made for pytest_mark_count-0.5.1.tar.gz:
Publisher:
publish-to-test-pypi.yml on anogowski/pytest-mark-count
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_mark_count-0.5.1.tar.gz -
Subject digest:
1d7bfcc9fb539a079475b599293c2d4d6291e9aa9c87e128e67980236ade9720 - Sigstore transparency entry: 148758740
- Sigstore integration time:
-
Permalink:
anogowski/pytest-mark-count@506ae6b0184c70d2419777dceb936725249a4c83 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/anogowski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@506ae6b0184c70d2419777dceb936725249a4c83 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pytest_mark_count-0.5.1-py3-none-any.whl.
File metadata
- Download URL: pytest_mark_count-0.5.1-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4a8872f015917bc6981225f18e7301c646cc0971973b1a749f702f2925679c9
|
|
| MD5 |
c29957c49be32cd701638f4c7c71e0c1
|
|
| BLAKE2b-256 |
0d4af4e242f7f1b47e764bd6890ec5b5b8677edc8eb0d5c1972ac4e8c9cc5a36
|
Provenance
The following attestation bundles were made for pytest_mark_count-0.5.1-py3-none-any.whl:
Publisher:
publish-to-test-pypi.yml on anogowski/pytest-mark-count
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_mark_count-0.5.1-py3-none-any.whl -
Subject digest:
a4a8872f015917bc6981225f18e7301c646cc0971973b1a749f702f2925679c9 - Sigstore transparency entry: 148758741
- Sigstore integration time:
-
Permalink:
anogowski/pytest-mark-count@506ae6b0184c70d2419777dceb936725249a4c83 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/anogowski
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-test-pypi.yml@506ae6b0184c70d2419777dceb936725249a4c83 -
Trigger Event:
push
-
Statement type: