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

Is it possible to test shaking the device in a widget/integration test? #14

Open
toebgen opened this issue Apr 13, 2022 · 1 comment
Open

Comments

@toebgen
Copy link

toebgen commented Apr 13, 2022

Is it possible to mock this in a Flutter Integration Test somehow? I am looking for a way to do this programmatically.

@deven98
Copy link
Owner

deven98 commented Apr 17, 2022

The package uses sensors_plus underneath, so while I need to do a bit more research, the first place I would start looking is their test folder: https://github.com/fluttercommunity/plus_plugins/blob/main/packages/sensors_plus/sensors_plus/test/sensors_test.dart

Currently pushing a few other changes to the package but I'll look into adding tests and mocking this next week.

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

No branches or pull requests

2 participants