-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command line paramater to specify test command #499
Comments
Thanks for trying aider and filing this issue. You can use the in-chat So you might do:
It will run them and feed the errors back to the LLM until the tests all pass and return exit code 0. You can use control-R or the up-arrow to quickly pull up that same |
Thanks. I'm aware of |
Would it help if you could configure a test command, and then doing |
That would run the tests after the changes have already been commited, right? I thought it would be nicer to only have commits for changes, which have passed the test command. |
In general, I'm not prioritizing making a "tidy" or "perfect" git commit history. The priority is using git to make sure it's easy to undo/revert/inspect the history of changes made by the AI. If a clean commit history is important to you, you can always use |
Ok, I see, that makes sense. Then I like your suggestion of configuring a test command which you can invoke using |
Thanks for creating aider!
Using it for the first time, I was missing a way to specify a test command. A test command would run automatically after every change and trigger a feedback loop until the exit code becomes 0.
I would use that for all kinds of testing and type checking.
The text was updated successfully, but these errors were encountered: