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 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.
- Update pip
pip install -U pipto ensure latest version is used - 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.
Metadata
Release files for failures-analysis 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| failures_analysis-2.1.0.tar.gz | 9.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| failures_analysis-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.7 kB
Release files / failures_analysis-2.1.0.tar.gz
| Download URL | failures_analysis-2.1.0.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb8c4967c5258bbe91cd5727896f58792bfdd4220b84b56eda09626ffc3b2d8d
|
|
BLAKE2b-256 checksum How to use checksums |
4da7ed7929ffbdf0a9a220f469cbd282d8479203ca0ad6d848ac31c454f7869b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.2 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/5.1.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.8.15
|
Release files / failures_analysis-2.1.0-py3-none-any.whl
| Download URL | failures_analysis-2.1.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17434b0d94776295ae06b40623b4358c9459feaf86de7d21991ef0fa498339e5
|
|
BLAKE2b-256 checksum How to use checksums |
892b1e03ee47fe6147ef77c80460304df7628ce233be4f73f6f92f65d768a981
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.2 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.13 tqdm/4.64.1 importlib-metadata/5.1.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.8.15
|