Skip to main content

pytest plugin to test case doc string dls instructions

Project description

Pytest Allure DSL Plugin
========================

Installation
------------

```bash
pip install pytest-allure-dsl
```

Enable plugin
-------------

```bash
pytest --allure-dsl
```

Using allure labels and description
-----------------------------------

```python
def test_example():
"""
feature: test feature string or features list
story: test story string or story list
description: test description string
issue: test issue
... and etc allure labels
"""
pass
```

Using allure steps from dsl
---------------------------

```python
def test_example(allure_dsl):
"""
steps:
1: step one
2:
name: step two
my_key: my custom annotation, will not be using for allure report
"""
with allure_dsl.step(1):
pass

with allure_dsl.step(2):
pass
```

Advantages
----------
Plugin can be using for sync to jira zephyr, kanoah.
For example:
```python
import pytest

@pytest.fixture(scope='function')
def sync_to(client_for_sync, allure_dsl):
client_for_sync.sync_case(allure_dsl.instructions)
```

Project details


Download files

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

Source Distribution

pytest-allure-dsl-0.0.1.tar.gz (2.8 kB view hashes)

Uploaded Source

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