Unit Tests #1082
-
Hey, I'm trying to add unit tests for my C++ code. I have looked at the unit-test example in this repo, and have some questions: The tests are running on my phone, so all the test targets are always compiled, and included in the final APK, just that these libraries aren't loaded outside of the kotlin unit tests. The example gradle build excludes these Are you somehow running the native tests on the host machine, and therefore don't need to install them onto the phone? Also, are unit tests for ndk just not something we are supposed to do right now? I could also just compile parts of my C++ code that doesn't use anything android related (utility classes etc.) and test them using normal ctest practices. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This was https://issuetracker.google.com/236913987. We're on a new enough version of AGP now to have the fix, but ndk-samples/unit-test/app/build.gradle Line 31 in 9d38db9 |
Beta Was this translation helpful? Give feedback.
This was https://issuetracker.google.com/236913987. We're on a new enough version of AGP now to have the fix, but
ndk-samples/unit-test/app/build.gradle
Line 31 in 9d38db9