
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
A pytest plugin for requirement coverage tracking.
Install from PyPI:
pip install pytest-reqcov
Add requirement markers to your tests:
import pytest
@pytest.mark.req(id="REQ-001")
def test_user_login():
"""Test user login functionality."""
assert login_user("user", "password") == True
@pytest.mark.product(id="ProductA")
def test_user_logout():
"""Test user logout functionality."""
assert logout_user() == True
Run pytest with requirement coverage:
pytest --reqcov-reqs=requirements.csv --reqcov-prods=products.csv --reqcov-output=output.csv
When running tests across multiple test suites or environments, you can merge the generated coverage reports using the reqcov-merge
command:
# Merge multiple output files
reqcov-merge output1.csv output2.csv output3.csv -o merged_output.csv
# Merge with verbose output
reqcov-merge output1.csv output2.csv -o merged_output.csv --verbose
The merge script applies the AND operator for status determination:
PASSED
, the merged status is PASSED
FAILED
, the merged status is FAILED
Example merge scenario:
# output1.csv
item;type;status;tests
REQ001;requirement;PASSED;test_req_1
Product_A;product;PASSED;test_product_a1
# output2.csv
item;type;status;tests
REQ001;requirement;FAILED;test_req_2
Product_A;product;PASSED;test_product_a2
# merged_output.csv (result)
item;type;status;tests
REQ001;requirement;FAILED;test_req_1,test_req_2
Product_A;product;PASSED;test_product_a1,test_product_a2
Add configuration to your pytest.ini
or pyproject.toml
:
[tool.pytest.ini_options]
markers = [
"req: tests with associated requirements",
"product: tests with associated product",
]
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A pytest plugin for requirement coverage tracking
We found that pytest-reqcov demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.