Skip to main content

failures-analysis package provides fast and reliable way to find and group similar failures in test automation.

Project description

Failure analysis

Version Actions Status License Code style: black

Tests failure analysis package provides fast and reliable way to find and group similar failures in your CI/CD pipeline. When failure grouping and similarity scoring is done automatically by a machine, it will free resources from development team member to fix the most important failures in their CI/CD pipeline. It is tedious work for a human to download, open and read all the test failures and analyze which failures belong to the same group. The failure-analysis package solves this problem by processing xunit xml files and failures found within by calculating the similarity score of failures using cosine similarity.

Results of this approach are to be published in Springer Book Series: Advances in Intelligent Systems and Computing later (link to be provided once published).

Installation instructions

Only Python 3.8 or newer is supported.

  1. Update pip pip install -U pip to ensure latest version is used
  2. Install from the commandline: pip install failures-analysis

Usage

To be able to find similar failures, users need to download xunit result(s) in to folder. How and where the download of the xunit files is done, is not part of this project, but example flaky-test CI has an example how download from GitHub can be performed. Tool can be used from command line and it needs only one argument: path to folder where xunit xml files are located, example: failures-analysis path/to/xunit/files

Supported xunit formats

Package has been tested with Pytest and Robot Framework xunit output files. Other format might be supported, but because we do not have visibility on those formats, those are not listed.

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

failures_analysis-2.1.0.tar.gz (9.4 kB view hashes)

Uploaded Source

Built Distribution

failures_analysis-2.1.0-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

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