Skip to main content

Associate DevOps test cases with pytest XML results

Project description

Version

Pytest Parser to Azure DevOps Test Case

Associate DevOps test cases with pytest nunit XML results

Usage

The parser should be run on an Azure DevOps pytest-azurepipelines generated XML file, because it searches for the following attributes:

  • "test-case"
    • "methodname"
    • "result"

The Python script requires the following arguments:

  • org: Azure DevOps organization name
  • project: Azure DevOps project name
  • plan: Azure DevOps test plan name
  • suite: Azure DevOps test suite name
  • auth: Azure DevOps personal access token
  • xml: pytest-azurepipelines generated XML file

The test cases should be named in the following format: testcase_<DevOpsID> , i.e. def testcase_123456():

For example:

ads-pytest-parser org project planID suiteID authToken test.xml

The script will then associate the test cases with the test results - for the test cases the outcome will be set.

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

ads-pytest-parser-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

ads_pytest_parser-0.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file ads-pytest-parser-0.0.2.tar.gz.

File metadata

  • Download URL: ads-pytest-parser-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for ads-pytest-parser-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ae676c2883a36c683c466b4c38a2391b3b38f4954cf37d32b8d2e0395f1f9128
MD5 54f3f66389e70c142c9d9f91bd150480
BLAKE2b-256 502094b52bfdd3f4bbf9cf9496c2466e53cfd73b72f06bc1305c3de708188b90

See more details on using hashes here.

File details

Details for the file ads_pytest_parser-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ads_pytest_parser-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d4b4caf822029d8ebcf3484ad39fa178d2c2cc52cf07cd8552f2203353fb469f
MD5 bc59b9599fa37bbff74a793c178699df
BLAKE2b-256 26b8112ec515c81a6e29cc3e94f6fd4316d5f9e00fdf53b7cfc259f3a2661495

See more details on using hashes here.

Supported by

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