Skip to content
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

fix: return combined output of failed test to trigger fix #3230

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

neilsautereau
Copy link

Fixes #3140 by returning the combined output of a failed test, which is the same as how failed lint commands work.

This section of base coder is expecting failed tests to return errors to trigger the prompt:

        if edited and self.auto_test:
            test_errors = self.commands.cmd_test(self.test_cmd)
            self.test_outcome = not test_errors
            if test_errors:
                ok = self.io.confirm_ask("Attempt to fix test errors?")
                if ok:
                    self.reflected_message = test_errors
                    return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--auto-test not workign with --message-file
2 participants