Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

To be used for testing where exceptions are expected

@Hixie
Copy link
Contributor

Hixie commented Jul 11, 2018

How can we distinguish expected errors from unexpected errors?
In my experience, silencing all errors is a recipe for missing errors.

@jonahwilliams
Copy link
Contributor Author

The error is still returned to the driver script, it just isn't logged.

@Hixie
Copy link
Contributor

Hixie commented Jul 12, 2018

Ah ok, great. Please make sure to document where exactly error messages will be sent so that they can be properly handled, since presumably otherwise this won't actually do anything useful (the error messages won't print, but then they're promptly cause the test to fail anyway, right? Unless you catch them somehow).

@jonahwilliams
Copy link
Contributor Author

Updated the doc comment to indicate how errors are returned

@Hixie
Copy link
Contributor

Hixie commented Jul 12, 2018

LGTM

@jonahwilliams jonahwilliams merged commit 2f0b415 into flutter:master Jul 14, 2018
@jonahwilliams jonahwilliams deleted the silence_errors branch July 14, 2018 02:13
teriyakijack added a commit to teriyakijack/flutter that referenced this pull request Jul 17, 2018
* flutter_master: (810 commits)
  Revert engine roll to 316b026
  roll engine to 316b026 (flutter#19419)
  Revert "enable lint unnecessary_const (flutter#19342)" (flutter#19423)
  enable lint unnecessary_const (flutter#19342)
  Chevrons in month picker are semi-transparent when the month is scrolled (flutter#19363)
  Revert "Use FlutterProject to locate files  (flutter#18913)" (flutter#19409)
  Extra debug information in run_release_test (flutter#19405)
  Fix typo (flutter#19402)
  Use FlutterProject to locate files  (flutter#18913)
  Revert "roll engine to 9af920e (flutter#19365)" (flutter#19376)
  roll engine to 9af920e (flutter#19365)
  increase cache size if image is loaded that is larger than max size (flutter#19352)
  Add Bash and Zsh command-line completion for flutter (flutter#19243)
  Support keyboardAppearance field for iOS (flutter#19244)
  Add option to silence driver extension errors (flutter#19247)
  Add HeroController to CupertinoApp (flutter#19326)
  have text finder convert Text.rich to plain text for comparison (flutter#19270)
  Correct contentPadding type in InputDecoration.debugFillProperties (flutter#19318)
  Revert "Revert "Use runTests in fuchsia tester. (flutter#19178)" (flutter#19321)" (flutter#19327)
  Roll engine to c5a63d (flutter#19288)
  ...
DaveShuckerow pushed a commit to DaveShuckerow/flutter that referenced this pull request Jul 19, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants