David Rubio
10/01/2024, 7:59 AMbuild-logic/convention/src/test/resources/
with getResource
, like I would do normally in my app, but it seems it's trying to read it from build-logic/convention/build/classes/kotlin/test/
. My test class is there, but I don't see any resource there. What I'm missing?Vampire
10/01/2024, 8:10 AMbuild-logic/convention/build/resources/test/
where it is put by processTestResources
.David Rubio
10/01/2024, 8:44 AMbuild-logic
directory to a new project and it's working there.
In my original project processTestResources
isn't even running. Will investigate.David Rubio
10/01/2024, 10:18 AM// workaround for <https://github.com/gradle/gradle/issues/28407>, <https://issuetracker.google.com/issues/331902968>
gradle.startParameter.excludedTaskNames.addAll(listOf(":build-logic:convention:testClasses"))
After removing it, it works.
Additionally, when I apply my plugin and run the plugin tests, I get "Test events were not received" in Android Studio.
Only when I don't apply the plugin I can see the tests execution and the text printed with println
(so maybe stdout is being "eaten" somehow?)Vampire
10/01/2024, 12:42 PMOnly when I don't apply the plugin I can see the tests execution and the text printed withAgain, an MCVE might be necessary to show what you mean. At least to me it is not really clear what situation and problem you have.(so maybe stdout is being "eaten" somehow?)println
Vampire
10/01/2024, 12:43 PM