← Changelog
NewAuditorFrom the roadmap

@auditor tests writes tests for a pull request's changes, and runs them

Comment @auditor tests on a pull request, optionally with what to focus on. Auditor learns how the repository tests, writes unit tests for the behaviour the pull request adds or changes, and runs them in a sandbox with Vitest, Jest or pytest, or a command you set, fixing them from their failures for up to three rounds. It only writes test files, never the code under test.

Passing tests come as a pull request into your branch, or a commit onto it, as Where fixes go says. Tests that still fail, or couldn't be run, come as a draft pull request with the output. Set the test command, or turn it off, with Write tests on the Reviews tab or tests in .auditor.yaml.

More in Tests.