Skip to content

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

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

sirpengi
Copy link
Contributor

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.

@sirpengi sirpengi requested a review from gnprice October 31, 2023 14:12
@sirpengi sirpengi mentioned this pull request Oct 31, 2023
@sirpengi
Copy link
Contributor Author

sirpengi commented Oct 31, 2023

@gnprice your comments on these commits in #317 (review) have been handled.

Copy link
Member

@gnprice gnprice left a 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.

@@ -0,0 +1,62 @@
# Integration Tests

Integration tests in Flutter allow self-driven end-to-end
Copy link
Member

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.

Comment on lines 8 to 11
Future<void> main() {
return integrationDriver(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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) ).

@sirpengi sirpengi force-pushed the pr-integration-tests branch from 382fc1e to 1708798 Compare November 1, 2023 15:34
@sirpengi
Copy link
Contributor Author

sirpengi commented Nov 1, 2023

@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.
@gnprice gnprice force-pushed the pr-integration-tests branch from 1708798 to 4efdc3a Compare November 1, 2023 20:54
@gnprice
Copy link
Member

gnprice commented Nov 1, 2023

Thanks for the revision! Merging.

@gnprice gnprice merged commit 4efdc3a into zulip:main Nov 1, 2023
@sirpengi sirpengi deleted the pr-integration-tests branch January 23, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants