Liam Appelbe
Liam Appelbe
Finally managed to get a minimal repro. When the package under test has a *dev* dependency on a package with native assets, it works under `dart test` but not `test_with_coverage`.
The issue is that `test_with_coverage` runs tests through `dart run` instead of `dart test`. In fact I can repro this running the test through `dart run test/foo_test.dart` manually, without using...
Ah ok. Defaulting to not building the dev deps in `dart run` makes sense I guess. But we probably need a way of overriding that, like a flag we can...
> specifically, I get the error `./rust/use_rust.h:1:10: fatal error: 'cstdlib' file not found [Lexical or Preprocessor Issue]` so it can't find the C standard libraries? You might need to use...
> These are iOS-specific APIs and the [example is using SDK for macOS](https://github.com/dart-lang/native/blob/main/pkgs/ffigen/example/objective_c/config.yaml). WidgetKit can be found under `/Library/Developer/CommandLineTools/SDKs/MacOSX15.1.sdk/System/iOSSupport/System/Library/Frameworks/WidgetKit.framework/Versions/A/Modules/WidgetKit.swiftmodule/arm64e-apple-ios-macabi.swiftinterface` or `/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/WidgetKit.framework/Versions/A/Headers/WidgetKit.h` but I'm not sure if this is even possible...
> This won't work for Swift; I know for now Swift is going through an ObjC wrapper layer, but if at some point Swift allows for true interop, it would...
Fair enough. That approach would be compatible with solution 6. In our interop team meeting Hossein and I were leaning towards solution 6. Hossein is going to work on a...
Thanks for the code pointers. > unless it could also ultimately call `Mock.noSuchMethod`... My hunch is that's the simplest approach, assuming that `Mock.noSuchMethod` is the bottleneck that all mock method...
> This sounds right. So in your example above, `foo.someMethod` refers to an extension method. Yep > And `fooMock.someMethod` would refer to an _instance_ method on `MockFoo`, right? Mockito just...
Ok, so we update ffigen to optionally generate mocks. Then change my example above to: ```dart test('Testing Foo', () { // Foo is an ObjC class that has an FFIgen...