-
Notifications
You must be signed in to change notification settings - Fork 309
Add integration test of _UnreadMarker animation #349
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
Conversation
@gnprice your comments on these commits in #317 (review) have been handled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Just two small comments remaining; otherwise LGTM.
docs/integration_tests.md
Outdated
@@ -0,0 +1,62 @@ | |||
# Integration Tests | |||
|
|||
Integration tests in Flutter allow self-driven end-to-end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(continuing from #317 (comment) )
OK. Let's say "self-driving", then — that makes the car analogy more evident because that's the wording that's always used in that context, and that's also the wording they use in that package:integration_test
readme.
integration_test/perf_driver.dart
Outdated
Future<void> main() { | ||
return integrationDriver( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Future<void> main() { | |
return integrationDriver( | |
Future<void> main() { | |
// See cookbook recipe for this sort of driver: | |
// https://docs.flutter.dev/cookbook/testing/integration/profiling#3-save-the-results-to-disk | |
return integrationDriver( |
That way the relevant bit of docs is handy when editing this file in the future (cf #317 (comment) ).
382fc1e
to
1708798
Compare
@gnprice this is ready! |
Added an initial integration test to capture render performance of _UnreadMarker animation. This method was helpful for comparing across different implementations of the marker to see if any method was more efficient than others. The test driver `integration_test/perf_driver.dart` is derived from BSD licensed example code in Flutter documentation about integration tests profiling, see: https://docs.flutter.dev/cookbook/testing/integration/profiling#3-save-the-results-to-disk Also added a `docs/integration_tests.md` to capture notes on the process of gathering performance metrics on physical devices.
1708798
to
4efdc3a
Compare
Thanks for the revision! Merging. |
This PR was split off from #317 and is based on that branch. Also adds documentation on how to gather performance metrics on physical devices.