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

Mockito doesn't work in integration test #594

Closed
LucasXu0 opened this issue Dec 16, 2022 · 2 comments
Closed

Mockito doesn't work in integration test #594

LucasXu0 opened this issue Dec 16, 2022 · 2 comments

Comments

@LucasXu0
Copy link

I added a @GenerateMocks([FilePicker]) under the integration_test path. But nothing generates after executing flutter pub run build_runner build.

But it works fine in the unit test. So, does mockito work in the integration tests?

@srawlins
Copy link
Member

srawlins commented Dec 16, 2022

Duplicate of #545 and #550

@alanrubin
Copy link

Seems this was finally solved by Mockito 5.4.0 - just configure the build.yaml as https://stackoverflow.com/a/68275812 (and obviously upgrade Mockito to v5.4.0+)

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

3 participants