-
Notifications
You must be signed in to change notification settings - Fork 217
Print a usable reproduction command of failed tests. #1734
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
Comments
#329 is another related feature, not sure if we would want both? |
I would personally use both of these features. Sometimes you want to drill down into a single failed test. |
This one is also significantly easier to implement I think (although it won't be perfect, a basic implementation should work in the 99% case) |
I looked into this a bit and this is more challenging than it might appear - at least to get the line to consistently show up in a good place. I could pretty reliably get it to show up as the first line after the failure line, something like this:
But I don't think that is really what you want, I think you probably want it as the last line (after the failure output). The problem is some tests tend to output more text a bit after this failure event comes through, so it ends up in the middle of the output. I think that is a result of |
|
…t reporter (#1736) Closes #1734 Example output: <img width="906" alt="Screen Shot 2022-06-28 at 11 00 32 AM" src="https://user-images.githubusercontent.com/984921/176251403-63a99464-6de2-42ad-a85e-1c794d434c00.png">
Currently a failing test prints a line like so:
Running that single test again from the command-line is kind of cumbersome. One has to
flutter test
ordart test
-n ""<backarrow>
It would be awesome if the whole command could be printed. Something like:
With escaping of tricky characters in the name string.
The text was updated successfully, but these errors were encountered: