Skip to content
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

Improve testing support #35

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Improve testing support #35

wants to merge 1 commit into from

Conversation

haroldadmin
Copy link
Owner

This PR makes the following changes:

  • Add an internal drain method to VectorViewModel for draining all jobs launched using viewModelScope and its StateProcessor. This method is marked internal and is unavailable for use subclasses or consumers of the library
  • Add a vector-test module
  • Add a VectorTestRule for delegating the responsibility of setting the Main dispatcher to a regular dispatcher in unit tests
  • Add a test-utility method to VectorTestRule to drain view models
  • Updates documentation in various places

This PR needs more review and work. Marking it as a draft PR until then.

@haroldadmin haroldadmin added the enhancement New feature or request label May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant