Nose plugin for allure framework
Project description
It is a port of pytest-allure-adaptor for nose framework.
Usage
nosetests --with-allure --logdir=/path/to/put/results
Supported features
Attachment
To attach some content to test report:
import nose
def test_foo():
nose.allure.attach('my attach', 'Hello, World')
Step
To divide a test into steps:
import nose
def test_foo():
with nose.allure.step('step one'):
# do stuff
with nose.allure.step('step two'):
# do more stuff
Can also be used as decorators. By default step name is generated from method name:
import nose
@nose.allure.step
def make_test_data_foo():
# do stuff
def test_foo():
assert make_some_data_foo() is not None
@nose.allure.step('make_some_data_foo')
def make_some_data_bar():
# do another stuff
def test_bar():
assert make_some_data_bar() is not None
Environment Parameters
You can provide test environment parameters such as report name, browser or test server address to allure test report.
import nose
def test_dummy():
nose.allure.environment(report='Allure report', browser=u'Firefox')
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
Built Distribution
Close
Hashes for nose_allure_plugin-0.1a2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a01dc7a1c9e4df21d3eb04f028ffd7125655d2b168a0c26cc10fbcccefe83745 |
|
MD5 | 3709ac88096ca73d25455eabb5884680 |
|
BLAKE2b-256 | cdc3852c6204da10ff5de4fd13fcc8c686509cc23d8a4fc33ea7655ce1cd29ee |