Output Formats¶
testx supports four output formats.
Pretty (default)¶
Clean, colored terminal output with pass/fail icons and timing.
JSON¶
Machine-readable structured output. Useful for scripts and dashboards.
{
"suites": [
{
"name": "tests/test_math.py",
"tests": [
{ "name": "test_add", "status": "passed", "duration": 0.001 },
{ "name": "test_divide", "status": "failed", "duration": 0.002 }
]
}
],
"duration": 0.12,
"exit_code": 1
}
JUnit XML¶
Standard JUnit XML format. Compatible with Jenkins, GitLab CI, GitHub Actions, and most CI systems.