cuongvue
cuongvue
have the same issue on android only, setting Background Message resolves the issue
I resolve this issue by turn on wifi connection
@srawlins I'm not sure how to do that. What is a stub and how to create it? could you please share me some code?
@srawlins I try `@GenerateMocks([], customMocks: [MockSpec(Cat, returnNullOnMissingStub: true)])` but get the compile error as `Too many positional arguments: 0 expected, but 1 found.`. Trying `@GenerateMocks([], customMocks: [MockSpec(as: Cat, returnNullOnMissingStub: true)])`...
My build_runner version is `^1.11.0`. I try to change my test file as: ``` @GenerateMocks([], customMocks: [ MockSpec( as: #BaseMockCat, returnNullOnMissingStub: true, ) ]) main() { test("verify", () { var...
using `build_runner 2.0.1` can generate the .mocks.dart file but running my test results an error like: ``` test/mock_test.mocks.dart 22:11 MockCat.sound test/mock_test.dart 17:9 main. type 'Null' is not a subtype of...
@srawlins so how can I test the `String sound() => "Meow";` function please?
``` @GenerateMocks([Cat]) main() { test("verify", () { var cat = MockCat(); cat.sound(); verify(cat.sound()); }); } ``` my question is how can I run `verify(cat.sound());` in test function without an error?...