ExUnitJSON (ex_unit_json v0.2.4)
View SourceAI-friendly JSON test output for ExUnit.
ExUnitJSON provides a JSON formatter for ExUnit that outputs structured test results, making them easy for AI editors like Claude Code to parse and reason about.
Quick Start
Run your tests with JSON output:
mix test.jsonOutput Format
The JSON output includes:
version- Schema version for forward compatibilityseed- The random seed used for test orderingsummary- Aggregate statistics (total, passed, failed, etc.)tests- Array of individual test results
Options
See mix help test.json for available options including:
--summary-only- Omit individual test results--failures-only- Include only failed tests--output FILE- Write to file instead of stdout
Modules
ExUnitJSON.Formatter- The ExUnit formatter GenServerExUnitJSON.JSONEncoder- Converts ExUnit structs to JSON maps