A pytest plugin for generating Nunit3 test result XML output
Project description
A pytest plugin for generating Nunit3 test result XML output
This plugin is an early alpha release!
Configuration
Use --nunit-xml=output.xml to create an Nunit3-compatible file called output.xml
Fixtures
The following fixtures are made available by this plugin.
record_nunit_property
Calling record_nunit_property(key: str, value: str) will result in Property tags being added to the test-case for the related node.
def test_basic(record_nunit_property):
record_nunit_property("test", "value")
assert 1 == 1
add_nunit_attachment
Add an attachment to a node test-case by calling the add_nunit_attachment() function with the filepath and a description.
def test_attachment(add_nunit_attachment):
pth = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'fixture.gif')
add_nunit_attachment(path, "peanut butter jelly time")
assert 1 == 1
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
pytest-nunit-0.0.3.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for pytest_nunit-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42cd0d982e43137f64f6dce639cc778df10d273adc14a57c7ee918a416864b73 |
|
MD5 | ca93f029e3d0515f95824f11044d0d5a |
|
BLAKE2b-256 | 06bc8b022e425a02a1fdc90f8b47ab5fc8501729cf96efa2d71b9cd9b46dc79b |