test(amplify_event_enrichment): add unit tests#7068
Open
ekjotmultani wants to merge 3 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feat/event-enrichment-client #7068 +/- ##
================================================================
- Coverage 43.23% 43.15% -0.08%
================================================================
Files 99 102 +3
Lines 7769 7818 +49
Branches 3401 3423 +22
================================================================
+ Hits 3359 3374 +15
- Misses 4410 4444 +34 🚀 New features to boost your workflow:
|
4954624 to
b05a0ad
Compare
328e67e to
4f87f1f
Compare
4f87f1f to
37a24b8
Compare
Records an event, stops the session, then records again and asserts the second event gets a new session id with no stop_timestamp, proving a stopped session is not reused.
37a24b8 to
d81689e
Compare
Apply prefer_const, prefer_int_literals, and cascade_invocations fixes plus formatting so the per-package CI passes analyze (--fatal-infos --fatal-warnings) and the format check on both enrichment packages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Splits the unit tests for the Event Enrichment packages into their own PR so the core implementation and the tests review independently.
What's here
amplify_event_enrichment_dart/test/: enriched event serialization, client, global fields manager, session manageramplify_event_enrichment/test/: Flutter lifecycle observerVerification
amplify_event_enrichment_dart: 41 tests pass (dart test)amplify_event_enrichment(Flutter wrapper): 6 tests pass (flutter test)By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.