How can I use Bitrise to test and display test results for this case? Using the Android Unit Test step, I tried specifying the inner modules, but Bitrise says it did not find them. I also tried to change the project’s location, but it tried to use the Gradle wrapper in that location (even though I set the path to the root directory), which fails.
I also tried running a script and using the Gradle Unit Test step. While it worked, the JUnit test results were not displayed in the Test Reports add-on. Maybe it isn’t supported, though.
Could you please send us the url of a build with this issue please?
also the test result add-on tab is for the [BETA] Virtual device test for Android step, the Junit and normal unit test results will be in the Apps & artifacts tab, if you have a Deploy to bitrise.io step in the workflow
@fehersanyi-bitrise, trying with no module/variant gives a weird result: one of the variants (not debug/release) lists the inner modules over 200 times each. The build ID is d1963189bdef97a6.
Specifying the debug variant does run the gradle tasks, but the tests in inner modules are not executed. The build ID for this one is 94c16479d03934bc.
Guess I can modify the build.gradle to make this task execute the inner tasks, but apparently Bitrise is not able to identify them.
Could you send us a link instead and allow Support Access for us? We’d run a few tests in attempt to get to the bottom of the behaviour - as long as that is okay with you
@saikrupacg, I ended up making the root testDebugUnitTest task depend on the inner modules’ testDebugUnitTest task, and setting the Android Unit Test step’s module to the root module.