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
I tried out dinghy at work where we have some cross-platform Rust code but aren't currently running our Rust tests on any mobile platforms. I got things to work without a lot of trouble (very cool!) but one of our tests had additional data files so I followed the sending more files directions and using dinghy_test::test_file_path worked fine running the tests on Android. However, when I tried to run the tests natively on my mac using cargo test it would fail with Couldn't find test data .... I looked briefly at the dinghy-test source and while there seems to be a branch for non-mobile platforms I'm guessing this isn't exactly supported. I wound up just using cfg to use the existing hardcoded paths to the test files on non-mobile which isn't great but works.
It'd be nice if dinghy_test worked for native desktop tests as well or if at least the documentation reflected the fact that you shouldn't use it for non-mobile testing.
The text was updated successfully, but these errors were encountered:
Thanks for your interest. The main branch is supposed to support the "host" target (native compilation and tests ran locally, very close to what cargo would do).
As far as I can tell, so far, we have handled this on our projects with something like that as a helper in the integration tests:
But I agree we may be able to do something a bit better by integrating the helper. I think the rationale against it was to keep dinghy-test as small as possible (without the yaml parser for instance)...
I tried out dinghy at work where we have some cross-platform Rust code but aren't currently running our Rust tests on any mobile platforms. I got things to work without a lot of trouble (very cool!) but one of our tests had additional data files so I followed the sending more files directions and using
dinghy_test::test_file_path
worked fine running the tests on Android. However, when I tried to run the tests natively on my mac usingcargo test
it would fail withCouldn't find test data ...
. I looked briefly at thedinghy-test
source and while there seems to be a branch for non-mobile platforms I'm guessing this isn't exactly supported. I wound up just usingcfg
to use the existing hardcoded paths to the test files on non-mobile which isn't great but works.It'd be nice if
dinghy_test
worked for native desktop tests as well or if at least the documentation reflected the fact that you shouldn't use it for non-mobile testing.The text was updated successfully, but these errors were encountered: