Metadata-Version: 2.1
Name: qa-analytics-insights
Version: 1.0.3
Summary: Analyze and visualize Quality Assurance data
Project-URL: Documentation, https://qa-analytics-insights.readthedocs.io/en/latest/
Project-URL: Issues, https://github.com/aydabd/qa-analytics-insights/issues
Project-URL: Source, https://github.com/aydabd/qa-analytics-insights
Author-email: Aydin Abdi <ayabd18@ingka.com>
License-Expression: MIT
License-File: AUTHORS.rst
License-File: LICENSE.txt
Keywords: analytics,assurance,black,conda,coverage,data,github,hatch,hatch-vcs,hatchling,html,insights,isort,loguru,matplotlib,mypy,nosetests,pip,pre-commit,pylint,pypi,pytest,pytest-cov,pytest-metadata,pytest-xdist,python,qa,quality,sphinx,sphinx-autodoc-typehints,sphinx-rtd-theme,testing,visualize,xml
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.9
Requires-Dist: loguru
Requires-Dist: matplotlib
Description-Content-Type: text/x-rst

QA Analytics Insights
=====================

.. image:: https://img.shields.io/github/downloads/aydabd/qa-analytics-insights/total
   :alt: GitHub all releases
   :target: https://www.github.com/aydabd/qa-analytics-insights/releases

.. image:: https://github.com/aydabd/qa-analytics-insights/actions/workflows/ci.yml/badge.svg
      :alt: GitHub Workflow Status
      :target: https://www.github.com/aydabd/qa-analytics-insights/actions/workflows/ci.yml

========
Overview
========

This repository hosts the source code for the `QA Analytics Insights`_ project,
a robust command-line interface (CLI) tool designed to generate data-driven
insights from QA (Quality Assurance) test results. Test results are typically
generated in XML format by test automation frameworks such as `pytest`_ and
`unittest`_.

========
Features
========
* Analyze test results in XML format.
* Generate visualizations and metrics to better understand test performance.
* Create actionable insights to improve QA processes.

Command line tool
-----------------

The command line tool can be used to generate insights from the tests results
in xml format.

The tool can be used as follows::

    $ qa-analytics-insights --help
    Usage: qa-analytics-insights -f <file> [-o <output_dir>] [-vv] [-h] [-v]

The tool accepts the following arguments:

    * `-f` or `--file`: Path to the file containing the tests results in xml format.
    * `-o` or `--output`: Path to the directory where the insights will be generated.
    * `-vv` or `--verbose`: Enable verbose mode.
    * `-v` or `--version`: Show version and exit.
    * `-h` or `--help`: Show help message and exit.


Library
-------

The library can be used to generate insights from the tests result in xml
format.

The library can be used as follows::

    from qa_analytics_insights.result_analyzer import ResultAnalyzer
    analyzer = ResultAnalyzer(
        test_results_file_path='path/to/test/results/file.xml',
        output_dir='path/to/output/dir',
    )

============
Installation
============

To install the package from `pypi`_, run the following command::

    $ pip install qa-analytics-insights

===========
Development
===========

To install the package in development mode, run the following command::

    # create a virtual environment
    $ virtualenv -p python3 venv

    # activate the virtual environment
    $ source venv/bin/activate

    # Run the package in development mode
    $ hatch run develop:all


For linting, run the following command::

    $ hatch run linter:linter

for building the package, run the following command::

    $ hatch build

for generating the documentation, run the following command::

    $ hatch run docs:all

for running the tests with coverage, run the following command::

    $ hatch run default:all

.. _QA Analytics Insights : https://qa-analytics-insights.readthedocs.io/en/latest/
.. _pypi: https://pypi.org/project/pip/qa-analytics-insights
.. _pytest: https://docs.pytest.org/en/latest/
.. _unittest: https://docs.python.org/3/library/unittest.html
