failures-analysis package provides fast and reliable way to find and group similar failures in test automation.
Project description
Failure analysis
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.
- Sequence Matcher from Pythons diff library https://docs.python.org/3/library/difflib.html
- Jaro-Winkler distance using jellyfish library https://pypi.org/project/jellyfish/
- Jaccard index using jellyfish library https://pypi.org/project/jellyfish/
- Levenshtein ratio using jellyfish library https://pypi.org/project/jellyfish/
- Cosine similiarty using sklearn https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.cosine_similarity.html
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.
- Update pip
pip install -U pip
to ensure latest version is used - Install from the commandline:
pip install failures-analysis
Features
- List of test that have the same failure
Parameters
--xxx
to be defined
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file failures-analysis-1.0.1.tar.gz
.
File metadata
- Download URL: failures-analysis-1.0.1.tar.gz
- Upload date:
- Size: 4.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49f47ff1eb5df368aba1ba5c89cd7aa4c9059ebb71f888502c7d7b90bc35599c |
|
MD5 | 68dc6be888c9b0eaaf152c24ce4b2729 |
|
BLAKE2b-256 | 209a48cbd1ae93f7da1bccff90cf5ffd2fb3435ce9b68bf3d4c83605e8a2aa29 |
File details
Details for the file failures_analysis-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: failures_analysis-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bca7daae2bfeeb5b1fdc5edd3cb1eadd22eac4c36ab4d89fff5aaf4402c232e |
|
MD5 | 74aaea5dfb278b5d22bdac222d3bf937 |
|
BLAKE2b-256 | 14a050f250c3cfba8043161a2e0cf4f8428f04d173fecba221f6290f5ef2ed98 |