Skip to main content

A pytest plugin for generating Nunit3 test result XML output

Project description

Build status PyPI version Python versions PyPI download month

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


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.5.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

pytest_nunit-0.0.5-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file pytest-nunit-0.0.5.tar.gz.

File metadata

  • Download URL: pytest-nunit-0.0.5.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for pytest-nunit-0.0.5.tar.gz
Algorithm Hash digest
SHA256 4e0086a752fd92acae69f6c51f54cd5bd669261fb4cce858e68e23cba84c1028
MD5 b8d8c164e404fac784153bc6b64251fb
BLAKE2b-256 53bc8601b74f49c7012da9b4186d001a3ecd74ea85ac837351a146d5eb8ca56c

See more details on using hashes here.

File details

Details for the file pytest_nunit-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pytest_nunit-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for pytest_nunit-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 03f49995fcf6fd32626e2daa9fb9cd6d913cda37466cb31822033218d4e76dfc
MD5 2852a0e52bccfb71c9ca02c035c5f3bb
BLAKE2b-256 11c2ef3f1395f06e4b8f577a98761b4690d09494333898cce284bc3302cbbe2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page