Skip to main content

Overwrite allure history id with testcase full name and testcase id if testcase has id, exclude parameters.

Project description

PyPI version Python versions See Build Status on GitHub Actions

Overwrite allure history id with testcase full name and testcase id if testcase has id, exclude parameters.


When the library is not installed,the historyId of the test cases generated by Allure is based on dynamic parameters within the test case, and each execution is not considered the same test case. After installing the library, when a test case id is configured, even with dynamic parameters, it will be recognized as the same test case.

Installation

You can install “pytest-allure-id2history” via pip from PyPI:

$ pip install pytest-allure-id2history

Usage

import random
import pytest


@pytest.mark.parametrize('arg', [
    random.randint(0, 9999)
], ids=['some-id'])
def test_foo(arg):
    print(f'Testing foo with {arg}')

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

Distributed under the terms of the MIT license, “pytest-allure-id2history” is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pytest_allure_id2history-0.1.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file pytest_allure_id2history-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_allure_id2history-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e512af6cf52a595c9b2a64288a2e89f405bfeee5d8177ae2825e8ff517f4a60b
MD5 677206a1db67ee5abbc95194162124e5
BLAKE2b-256 e9dc86cf7748148409358365ab931581352896a603d44e066650dc1b7a8b696d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page