allure-pytest only reports tests that were attempted
If a test case does not run (because the runner set up failed or because a CI job timed out on a previous test), the test case will be omitted from Allure Report.
This plugin creates default "unknown" status results for each test case that's expected to run. After the tests run, the default result can be included for any test case that does not have an actual test result—so that those test cases show up as "unknown" in the Allure Report.
For example, to merge the actual test results with the default "unknown" results:
import dataclasses
import json
import pathlib
@dataclasses.dataclass(frozen=True)
class Result:
test_case_id: str
path: pathlib.Path
def __eq__(self, other):
if not isinstance(other, type(self)):
return False
return self.test_case_id == other.test_case_id
actual_results = pathlib.Path("allure-results")
default_results = pathlib.Path("allure-default-results")
results: dict[pathlib.Path, set[Result]] = {
actual_results: set(),
default_results: set(),
}
for directory, results_ in results.items():
for path in directory.glob("*-result.json"):
with path.open("r") as file:
id_ = json.load(file)["testCaseId"]
results_.add(Result(id_, path))
actual_results.mkdir(exist_ok=True)
missing_results = results[default_results] - results[actual_results]
for default_result in missing_results:
# Move to `actual_results` directory
default_result.path.rename(actual_results / default_result.path.name)
As of 2025-01-31, the "unknown" status is not used by the allure-pytest adapter.
Upstream feature request to replace this plugin: https://github.com/allure-framework/allure-python/issues/821
Usage
Generate default results
pytest --allure-default-dir=allure-default-results
Metadata
Release files for allure-pytest-default-results 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| allure_pytest_default_results-0.1.4.tar.gz | 2.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| allure_pytest_default_results-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / allure_pytest_default_results-0.1.4.tar.gz
| Download URL | allure_pytest_default_results-0.1.4.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2eeaacf7836105724df549042e13b740b91013b2a53258ac456ea5fd82f3faa0
|
|
BLAKE2b-256 checksum How to use checksums |
d0867efea63ea5a162329288cbe76c4618d35b3a6e3dc1877822f78e44da0f5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 6, 2026.
Transparency logRelease files / allure_pytest_default_results-0.1.4-py3-none-any.whl
| Download URL | allure_pytest_default_results-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9cfc442e6108552c2cc0c3d818f61f8d718bca219ec60041273aa4ae57f0c04
|
|
BLAKE2b-256 checksum How to use checksums |
bdfb71234d046b1efebc40f103431ffddda0f8e8ea01adcd2219fc4f7c0b8130
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 6, 2026.
Transparency logSecurity for allure-pytest-default-results 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for allure_pytest_default_results-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.