commit | 14608ca5ed0fa54fb6b2abccbd68b120bfe8e283 | [log] [tgz] |
---|---|---|
author | Jia Hao <jiahaog@users.noreply.github.com> | Sat Jul 25 09:46:00 2020 +0800 |
committer | GitHub <noreply@github.com> | Sat Jul 25 09:46:00 2020 +0800 |
tree | cead6561c562f4b2169267042a9382d87950ff39 | |
parent | 116b37dd4ad59aebec39ed7ea18b6b96205fec07 [diff] |
[e2e] Fix incorrect test results when one test passes then another fails (#2866) * [e2e] Fix incorrect test results when one test passes then another fails For example, the following test will result in an error reported for the first test case. ``` void main() { testWidgets('a test that passes', (tester) async { expect(true, true); }); testWidgets('a test that fails', (tester) async { expect(true, false); }); } ``` We need to reset `reportTestException` back to the previous value after completion of `runTest`, or repeated failures will cause the exception handler for a previous test to be invoked, as they "stack". Instead of reseting it, however, do this once in the constructor because the test description is already provided by the function signature. * Add a mechanism for testing test results
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter first-party plugins (i.e., plugins developed by the core Flutter team). Check the packages
directory for all plugins.
Flutter plugins enable access to platform-specific APIs. For more information about plugins, and how to use them, see https://flutter.dev/platform-plugins/.
These plugins are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo.
If you wish to contribute a new plugin to the Flutter ecosystem, please see the documentation for developing packages and platform channels. You can store your plugin source code in any GitHub repository (the present repo is only intended for plugins developed by the core Flutter team). Once your plugin is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide, and send a pull request.
These are the available plugins in this repository.