Rob Pridham
05/28/2025, 3:19 PMtestDebugUnitTest is not running unit tests in most of our application modules, i.e. com.android.application ones. It happily runs them in all the library modules, and curiously, one sample app module.
More specific tasks like testMyProductVariantDebugUnitTest do run them.
What can I look at (logs etc) to understand why this is happening?ephemient
05/28/2025, 3:28 PMRob Pridham
05/28/2025, 3:29 PMephemient
05/28/2025, 3:29 PMephemient
05/28/2025, 3:30 PMephemient
05/28/2025, 3:30 PMRob Pridham
05/28/2025, 4:18 PMunitTestEnabled is already true. So enabling it (and I have) doesn't do anything different.
I suppose the answer might be a classic 'dependsOn' relationship?ephemient
05/28/2025, 4:19 PMephemient
05/28/2025, 4:19 PMRob Pridham
05/28/2025, 4:21 PMtest rather than testDebugUnitTest and then disable a bunch of stuff via enableUnitTest = false?ephemient
05/28/2025, 4:27 PMephemient
05/28/2025, 4:29 PMRob Pridham
05/28/2025, 4:32 PMrelease variants, but I don't know if that does actually happen or not, and similarly to avoid repetition for all product variants which as you say we could easily prevent in one coherent place.