Join Slack
Powered by
Hi. What is the best way to unit test Custom Task ...
# gradle
m
Mateusz Apacki
06/15/2022, 7:57 AM
Hi. What is the best way to unit test Custom Task (buildSrc)?. Extract logic to separate class, or what?
v
Vampire
06/15/2022, 8:09 AM
Not sure what you mean. If you have a custom task in
buildSrc
it already is a separate class, isn't it?
c
Chrimaeon
06/15/2022, 8:10 AM
have a look at this
https://github.com/chrimaeon/curriculumvitae/blob/44831ce1e3d48f6ddef018153d4ec9b1[…]c/test/java/com/cmgapps/gradle/ManifestTransformerTaskShould.kt
v
Vampire
06/15/2022, 8:12 AM
And
https://docs.gradle.org/current/userguide/testing_gradle_plugins.html
m
Mateusz Apacki
06/15/2022, 8:13 AM
Thanks! 🙂
9
Views
Open in Slack
Previous
Next