Skip to main content

A package for categorizing test results.

Project description

testcato

A Python package for categorizing test results (passed, failed, skipped).

Structure

  • testcato/ - main package directory
    • categorizer.py - core logic for categorizing test results
  • tests/ - unit tests for the package
  • setup.py - package setup configuration
  • requirements.txt - dependencies
  • LICENSE - license file

categorizer = TestCategorizer() test_results = [ {'name': 'test_one', 'status': 'passed'}, {'name': 'test_two', 'status': 'failed'} ] categories = categorizer.categorize(test_results) print(categories)


## Test Results Output

When you run pytest with the `--testcato` option, a folder named `testcato_result` will be automatically created in your working directory (if it does not exist). This folder will contain XML files with detailed tracebacks for failed tests. Each XML file is named with a timestamp, e.g., `test_run_YYYYMMDD_HHMMSS.xml`.

## Configuration File

`testcato_config.yaml` is a configuration file for specifying AI agents and their details. It is automatically created in your working directory when you import or install the package, if not already present. You can add multiple agents (e.g., `agent1`, `agent2`) and set a default agent:

```yaml
# default: agent1
#
# agent1:
#   type: openai
#   model: gpt-4
#   api_key: YOUR_OPENAI_API_KEY
#
# Add more agents below as agent2, agent3, etc.
# agent2:
#   type: azure
#   model: gpt-4
#   api_key: YOUR_AZURE_API_KEY

Uncomment and edit fields as needed for your use case.

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

testcato-1.2.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

testcato-1.2.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file testcato-1.2.1.tar.gz.

File metadata

  • Download URL: testcato-1.2.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.13

File hashes

Hashes for testcato-1.2.1.tar.gz
Algorithm Hash digest
SHA256 14dc0e7b01091c6719042b89373172f98aa9ee047d9eb94d3dfcd3d6fb5bf9fc
MD5 1c92499e3272696dbd3a8e822ba4af67
BLAKE2b-256 00972f21ce6b59aeb5ce236ed7d0fdeae7d451bbba798afbd88d38d3e205f3b1

See more details on using hashes here.

File details

Details for the file testcato-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: testcato-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.13

File hashes

Hashes for testcato-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 619df64730e3c79e7cabc378513402d8a13a5359c1fba050cb6493395c86812c
MD5 ebb84098df301246a948abf645d69215
BLAKE2b-256 1a9a316db4bd506550670b3cce303acc071179c63e4e6984a76a653e924bb17e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page