This commit is contained in:
Paul Gauthier 2024-08-28 08:52:23 -07:00
parent e1545b128a
commit f7a951c4f2

View file

@ -31,18 +31,21 @@ You can disable this with the `--no-auto-lint` switch.
## Testing ## Testing
You can configure aider to run your test suite You can run tests with `/test <test-command>`.
after each time the AI edits your code
using the `--test-cmd <cmd>` switch.
Aider will run the test command without any arguments. Aider will run the test command without any arguments.
If there are test errors, aider expects the If there are test errors, aider expects the
command to print them on stdout/stderr command to print them on stdout/stderr
and return a non-zero exit code. and return a non-zero exit code.
This is how most test tools normally operate.
To have aider automatically run the test command, Aider will try and fix any errors
use the `--auto-test` switch. if the command returns a non-zero exit code.
You can configure aider to run your test suite
after each time the AI edits your code
using the `--test-cmd <test-command>` and
`--auto-test` switch.
## Compiled languages ## Compiled languages