Skip to content

Add ViewModel lifetime widget tests + run tests in publish workflow#12

Merged
okmanideep merged 4 commits intomainfrom
feat/vm-test
Oct 24, 2025
Merged

Add ViewModel lifetime widget tests + run tests in publish workflow#12
okmanideep merged 4 commits intomainfrom
feat/vm-test

Conversation

@okmanideep
Copy link
Collaborator

Summary

  • Add focused widget tests covering ViewModelScope/ViewModel lifetime rules (retention across rebuilds, disposal on unmount, keyed instances, remount behavior, nested scopes, per-route scopes).
  • Run flutter test in publish workflow to prevent publishing on failing tests.

Rationale

  • Ensure lifecycle invariants are enforced with fast, deterministic tests.
  • Reduce release risk by failing CI before flutter pub publish.

Notes

  • Updated example/pubspec.lock after pub get.
  • No runtime code changes.

Copy link
Member

@jillellamudisurya jillellamudisurya left a comment

Choose a reason for hiding this comment

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

LGTM Bro!! 👏

@okmanideep okmanideep merged commit 7140e93 into main Oct 24, 2025
@okmanideep okmanideep deleted the feat/vm-test branch October 24, 2025 14:54
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