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.1a3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8b95c34ba5345a2403dd6a9717f8187e519c52c98c7a169039d4ccfe028c534 |
|
MD5 | 996204a2d186922a77b15c87084e1504 |
|
BLAKE2b-256 | 783bf3755fffac8a9f962696ff10ac4025c6fae4926bf95531ec9c4301cae9d2 |