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)
```
========================
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pytest-allure-dsl-0.0.1.tar.gz
.
File metadata
- Download URL: pytest-allure-dsl-0.0.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94015d6bf31fe76ed1ea5d0fc6bddd53eddca03cd5153b1f0593bce420c62ef5 |
|
MD5 | c050c7120e17fc83abd54f1b3c70209e |
|
BLAKE2b-256 | 864ddac12222c58bcebed3668a3f67a5a0a95008f9d05e904e445353e72c3dee |