About this use case
A commenter set custom instructions so Copilot writes tests and reruns them until passing, needing three manual approval clicks.
What they did
A commenter said they used GitHub Copilot with custom instructions telling it that whenever it wrote tests, it should keep executing the tests until they passed. In their run, Copilot created a test, ran it, saw the failure, chose on its own to rerun with a "--info" flag to get more detail, then changed the code and ran the tests again; the human only had to approve each terminal run.
Prompt
Write tests for [file, function, or module] using [test framework]. Run them, and if any fail, fix the code or tests and rerun until the whole suite passes. Stop when everything is green and give me a short summary of what you changed and which tests you added. Pause and ask before running any command that installs packages or deletes files.
Reported outcome
It eventually got the test passing in that example after three approved runs. The stated limitation was that Copilot still stopped for a human permission click before each terminal command.
Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.