Metadata-Version: 2.1
Name: pytest-allure-id2history
Version: 0.1.2
Summary: Overwrite allure history id with testcase full name and testcase id if testcase has id, exclude parameters.
Author-email: pytest-allure-id2history <ryaningli@foxmail.com>
Maintainer-email: pytest-allure-id2history <ryaningli@foxmail.com>
License: 
        The MIT License (MIT)
        
        Copyright (c) 2024 pytest-allure-id2history
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in
        all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
        THE SOFTWARE.
        
Project-URL: Repository, https://github.com/Ryaningli/pytest-allure-id2history
Classifier: Framework :: Pytest
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.8
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: pytest >=6.2.0
Requires-Dist: allure-pytest >=2.4.0

========================
pytest-allure-id2history
========================

.. image:: https://img.shields.io/pypi/v/pytest-allure-id2history.svg
    :target: https://pypi.org/project/pytest-allure-id2history
    :alt: PyPI version

.. image:: https://img.shields.io/pypi/pyversions/pytest-allure-id2history.svg
    :target: https://pypi.org/project/pytest-allure-id2history
    :alt: Python versions

.. image:: https://github.com/Ryaningli/pytest-allure-id2history/actions/workflows/main.yml/badge.svg
    :target: https://github.com/Ryaningli/pytest-allure-id2history/actions/workflows/main.yml
    :alt: 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.

.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter
.. _`@hackebrot`: https://github.com/hackebrot
.. _`MIT`: https://opensource.org/licenses/MIT
.. _`BSD-3`: https://opensource.org/licenses/BSD-3-Clause
.. _`GNU GPL v3.0`: https://www.gnu.org/licenses/gpl-3.0.txt
.. _`Apache Software License 2.0`: https://www.apache.org/licenses/LICENSE-2.0
.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin
.. _`file an issue`: https://github.com/Ryaningli/pytest-allure-id2history/issues
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`tox`: https://tox.readthedocs.io/en/latest/
.. _`pip`: https://pypi.org/project/pip/
.. _`PyPI`: https://pypi.org/project
