You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,10 @@ dart run build_runner build
58
58
`@GenerateNiceMocks` annotation. In the above `cat.dart` example, we import the
59
59
generated library as `cat.mocks.dart`.
60
60
61
+
**NOTE**: by default only annotations in files under `test/` are processed, if
62
+
you want to add Mockito annotations in other places, you will need to add a
63
+
`build.yaml` file to your project, see [this SO answer](https://stackoverflow.com/questions/68275811/is-there-a-way-to-let-mockito-generate-mocks-for-integration-tests-in-a-flutter).
64
+
61
65
The generated mock class, `MockCat`, extends Mockito's Mock class and implements
62
66
the Cat class, giving us a class which supports stubbing and verifying.
0 commit comments