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.2.tar.gz (5.6 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.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: testcato-1.2.2.tar.gz
  • Upload date:
  • Size: 5.6 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.2.tar.gz
Algorithm Hash digest
SHA256 e2ee10108f3b88127696e614e9407de8f3383ca92dd903dc2495cb73afae56da
MD5 7e442e704045f4f59bebedc114073d05
BLAKE2b-256 9962cfa592f845622d55db5cedc6e987bafd6ffdea6848455cd7e63f29663494

See more details on using hashes here.

File details

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

File metadata

  • Download URL: testcato-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a960b9664737fa581d6012bd7429caba307cd00a3a634c8b6eae337be9d98fa
MD5 748ae6988d033093be37142bb34c95a5
BLAKE2b-256 aefef02cc82e2b33f195e57c685c9c5fa9cce57bb1ef6125f81d0d0059c6171e

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