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 analyse which failures belong to the same group. The failure-analysis package solves this problem by processing xunit xml files using cosine similiarity and Levenshtein distance to find similar failures from the test results.

Test failure analysis package supports calculating similiarities with the following algorithms.

While it supports five different algorithms, best performing algorithms (cosine similiarity and levenshtein ratio) are only currently calculated.

Results and the reason why only cosine and levenshtein deemed good enough are published here: LINK TO THE FIRST PUBLICATION

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

Uploaded Source

Built Distribution

failures_analysis-1.0.5-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file failures-analysis-1.0.5.tar.gz.

File metadata

  • Download URL: failures-analysis-1.0.5.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.4 keyring/23.5.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for failures-analysis-1.0.5.tar.gz
Algorithm Hash digest
SHA256 5325cd9cbf03da589d223f442e75c81873c6e7b7048c487675080d34ac00349f
MD5 788900bd706fb2e2ca2af17f4ed98390
BLAKE2b-256 a5d41b2b0d16381479ab3c9ec7799185e21549a221ebf16dc285aaf9bdebe3d2

See more details on using hashes here.

File details

Details for the file failures_analysis-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: failures_analysis-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.4 keyring/23.5.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for failures_analysis-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eee2c9f6c46e424491c55bc091afaf54b70cef7f85655d2cc7f83f1f92b003a6
MD5 0fd065c1007eb42f9a3fe8ad4845aa62
BLAKE2b-256 ce5749c1db89fdc8b76893f5932620a04c7187758935fb2aaed8d36e79b12c9a

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