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 JSONL files with detailed tracebacks for failed tests. Each JSONL file is named with a timestamp, e.g., `test_run_YYYYMMDD_HHMMSS.jsonl`.

## 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.

**Current AI Support:**
- Only GPT (OpenAI) models are supported for automated test result debugging.
- You must configure your GPT agent in the config file (see example below).
- The default agent should be set to your GPT agent (e.g., `default: gpt`).

**Planned Future Support:**
- Support for other AI models and providers (such as Azure, Anthropic, etc.) will be added in future releases. You can prepare additional agent sections in your config for future use.

```yaml
# default: gpt
#
# gpt:
#   type: openai
#   model: gpt-4
#   api_key: YOUR_OPENAI_API_KEY
#   api_url: https://api.openai.com/v1/chat/completions

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.3.tar.gz (5.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.2.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: testcato-1.2.3.tar.gz
  • Upload date:
  • Size: 5.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.2.3.tar.gz
Algorithm Hash digest
SHA256 5452ad2db79181efadd979aab408acc1223f5e08605c75e400e848e9e66c899d
MD5 c4d4a77d1470b3c2f4a1c55bfd4c72e3
BLAKE2b-256 27cf18b7c79f4044454dd5abe8af18e3018f240a909d879e5c67f429a30bf656

See more details on using hashes here.

File details

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

File metadata

  • Download URL: testcato-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 6.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 61560d7108ddca93d723bb7dce8de6207b124dcc70a45469d9aaac95b328b70b
MD5 96b5a62bad7386e64d85707bffe026cf
BLAKE2b-256 769fb633c9464d6ff99b67f5b9ef661a5f4be258faeec829543993a667747b4c

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