Module trial.reporters.agent

A module containing the reporter used when the tests are run by an AI harness. It prints plain text, only for the failed tests, followed by one summary line.

Functions

NameDescription
countTests(results, status) Counts the tests that ended with a status
isAgentHarness(environment) Checks if the tests are run by an AI harness. TRIAL_AGENT overrides the detection.
toAgentFailure(suite, test) Describes a failed test with its location, its failure and the filter that runs it again
toAgentLines(throwable) Describes where and why a test failed, one indented line per message line
toAgentSummary(results) Describes the whole run on one line

Classes

NameDescription
AgentReporter This reporter prints the failed tests and a summary as plain text, without colors or glyphs

Global variables

NameTypeDescription
agentVariables immutable(char[][]) The environment variables set by the known AI harnesses