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
File details
Details for the file pytest_mark_count-0.5.0.tar.gz
.
File metadata
- Download URL: pytest_mark_count-0.5.0.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d41865a1253925383322ddd9073a1cfc46abca7cf83718b4de80fe2f58b1f33f |
|
MD5 | dea90137ec67b687999ab1bf037413ad |
|
BLAKE2b-256 | 51c3d324cd382af8e8c27943801e5135de2c63dec0e804193807356bac02b0a7 |
File details
Details for the file pytest_mark_count-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_mark_count-0.5.0-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 | 019c65db9358e76f97017d8c5146262c8cf1d01b0fd5c74c17904f0e285a9d21 |
|
MD5 | 0465f9319254fc2c6e7ab472d645cc17 |
|
BLAKE2b-256 | 44fbbce55aa5443fab93c50d3b44cb464934f0950b529c0ec664641aacbab5e4 |