Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

test-results-parser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-results-parser

  • 0.5.1
  • PyPI
  • Socket score

Maintainers
1

This project requires maturin, it can be installed using pip: pip install maturin

For development, to rebuild the rust portion of the library and install the library in your local venv (I believe this requires a venv in order to work), run: maturin develop

To use the library just import it after installing: import testing_result_parsers

There's an example of this in the tests directory.

The CI uses the maturin-action to build wheels and an sdist

The version of the wheels built are determined by the value of the version in the cargo.toml

There are 2 parsing function currently implemented:

  • parse_junit_xml: this parses junit.xml files
  • parse_pytest_reportlog: this parses files produced by the pytest-reportlog extension

Both these functions take the path to the file to parse as an arg and return a list of Testrun objects.

The Testrun objects look like this:

Outcome:
    Pass,
    Failure,
    Error,
    Skip

Testrun:
    name: str
    outcome: Outcome
    duration: float
    testsuite: str

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc