A package for categorizing test results.
Project description
testcato
A Python package for categorizing test results (passed, failed, skipped).
Structure
testcato/- main package directorycategorizer.py- core logic for categorizing test results
tests/- unit tests for the packagesetup.py- package setup configurationrequirements.txt- dependenciesLICENSE- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52cfedc265ffc3cadba59b6b6a1abf68f0185b6744f844d70455e12828e12abb
|
|
| MD5 |
4a3548d32f8026c13a99e49c8870fb18
|
|
| BLAKE2b-256 |
138d683ed89482c7a75c89fe3944767854aeb2fe60bf2e3e8abdf1f4f7f3920b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6b08d5065b1c9fe46e128d606df59f2e8811bec4460725c171c306a56ab1ad7
|
|
| MD5 |
caaf9f83424ee95948e0d956796bd2c8
|
|
| BLAKE2b-256 |
0eae27e7ab6074bbe960818cf08f133cc7ca74db5273b10d6b00ca30eb7afa1b
|