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.0.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.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: testcato-1.2.0.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.2.0.tar.gz
Algorithm Hash digest
SHA256 52cfedc265ffc3cadba59b6b6a1abf68f0185b6744f844d70455e12828e12abb
MD5 4a3548d32f8026c13a99e49c8870fb18
BLAKE2b-256 138d683ed89482c7a75c89fe3944767854aeb2fe60bf2e3e8abdf1f4f7f3920b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: testcato-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6b08d5065b1c9fe46e128d606df59f2e8811bec4460725c171c306a56ab1ad7
MD5 caaf9f83424ee95948e0d956796bd2c8
BLAKE2b-256 0eae27e7ab6074bbe960818cf08f133cc7ca74db5273b10d6b00ca30eb7afa1b

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