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.1.9.tar.gz (3.9 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.1.9-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for testcato-1.1.9.tar.gz
Algorithm Hash digest
SHA256 4858fc399463c126443a056b89ec5c29d6b36e8db9aef99550fa22bbda28177e
MD5 43cda4c2f45ab109780e4c11916389a9
BLAKE2b-256 9e3a929bd1351c5baf734d86bc74214bd51f7c31991c8961bd36041acf9070d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: testcato-1.1.9-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 04f0910506378f6ca58485ef44575189a246891ee734a08cdf4039dd7b527582
MD5 d0ff5bbee63caf7900e8bb0e918b3736
BLAKE2b-256 84fd496e6ca4e764cc78d7f94d70adea5b5ceae3e5458e1512a6cc2da3d810fc

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