https://kotlinlang.org logo
#arrow-meta
Title
# arrow-meta
e

evant

11/14/2019, 5:32 PM
Trying out making a custom plugin, it doesn't seem to apply to test sources. Does something special need to happen for that?
r

raulraja

11/14/2019, 5:37 PM
If you are running your tests from IDEA directly it may not be adding the plugin. Does it work if you run the test Gradle task?
Otherwise maybe @Rachel knows more about this
r

Rachel

11/14/2019, 5:41 PM
Hi! I didn't try it but now is a great moment to try it 😉 I'll let you know in a few minutes
Nothing special for test sources, @evant
I created a test in Hello Word example and it works
Please, can you give us more details about your example?
e

evant

11/14/2019, 5:55 PM
Hm, will try to figure out what's different. Was following the hello world example for project setup
r

Rachel

11/14/2019, 5:58 PM
Ok! Please, let us know if we can help you 👍
e

evant

11/14/2019, 6:30 PM
hm, just cloned https://github.com/arrow-kt/arrow-meta-examples and moved HelloWorld.kt to test and it's not working for me, both IDE and cmdline
r

Rachel

11/14/2019, 7:03 PM
Oh sorry @evant, I didn't understand your question in that way...
Please, in that case, replace
compileKotlin
by
compileTestKotlin
In
build.gradle
file
e

evant

11/14/2019, 7:26 PM
ah, got it. Thanks!
r

Rachel

11/14/2019, 7:27 PM
Thanks to you for letting us know that it's working for you 🙌
2 Views