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

Test reports don't contain useful info ("Multiple exceptions were thrown") #951

Open
bartekpacia opened this issue Feb 17, 2023 · 5 comments
Assignees
Labels
bug Something isn't working package: patrol Related to the patrol package (native automation, test bundling)
Milestone

Comments

@bartekpacia
Copy link
Contributor

bartekpacia commented Feb 17, 2023

This is unacceptable. We want to know what these exceptions are.

Screenshot 2023-02-17 at 10 52 02 AM

The code that prints this message lives here in flutter_test – in the _runTest() method of the abstract class TestWidgetsFlutterBinding.

TestWidgetsFlutterBinding is extended by LiveTestWidgetsFlutterBinding.

LiveTestWidgetsFlutterBinding is extended by IntegrationTestWidgetsFlutterBinding from integration_test.

We should be able to override FlutterError.onError to print full exception message and stack trace.

cc @mateuszwojtczak, @jBorkowska

@bartekpacia bartekpacia added bug Something isn't working package: patrol Related to the patrol package (native automation, test bundling) labels Feb 17, 2023
@jeremiahlukus
Copy link

jeremiahlukus commented Feb 17, 2023

would be nice also to have print statements output in the patrol output so print("test"); would show up in the console when i run patrol test --target integration_test/app_test.dart that way i wont have to parse through the massive amount of clutter in flutter logs

@bartekpacia
Copy link
Contributor Author

Yeah, we'll try to do this as well. It's definitely not convenient currently.

@jBorkowska
Copy link
Collaborator

size: M

@Noxiver
Copy link

Noxiver commented Apr 5, 2024

@bartekpacia any solutions?

@MickaelHrndz
Copy link

MickaelHrndz commented Sep 13, 2024

Please consider prioritizing this. It's the most upvoted bug issue. And it's been up for more than a year.
This testing package currently doesn't tell you what the exceptions that make your test fail are.

EDIT: I just found out about this workaround in the official doc to ignore these expections. I want to print them I can't see any of it in the console output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package: patrol Related to the patrol package (native automation, test bundling)
Projects
None yet
6 participants