Skip to content

add a line to re-run the failed test after each failure in the compact reporter #1736

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

Merged
merged 3 commits into from
Jul 6, 2022

Conversation

jakemac53
Copy link
Contributor

Closes #1734

Example output:

Screen Shot 2022-06-28 at 11 00 32 AM

@jakemac53 jakemac53 requested a review from natebosch June 28, 2022 18:01
@jakemac53
Copy link
Contributor Author

For now I did this only in the compact reporter, because it only ever runs on the VM (and I have access to Platform.executable). The expanded reporter runs on the web etc, and it isn't clear how to replicate the same functionality.

There is also a bit of a question I think in terms of internal, but I believe we always use a different reporter so they won't ever see it.

@jakemac53
Copy link
Contributor Author

I also wonder if I shouldn't move the command down to the next line, which would make it easier to copy/paste?

@jakemac53 jakemac53 merged commit 8eb474c into master Jul 6, 2022
@jakemac53 jakemac53 deleted the rerun-summary branch July 6, 2022 17:25
@Hixie
Copy link
Contributor

Hixie commented Jan 31, 2023

Is there a way to disable this message? It shows up for flutter test test failures but the command it gives doesn't work to actually run the test again.

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

Successfully merging this pull request may close these issues.

Print a usable reproduction command of failed tests.
4 participants