https://kotlinlang.org logo
Title
d

daggerok

05/25/2019, 9:33 PM
Does anyone knows if it’s possible somehow configure maven pom.xml to allow java tests to be recognized from
src/test/kotlin
folder? I prepared an example you can quickly clone and verify:
git clone <https://github.com/daggerok/mixed-kotlin-java-jupiter-tests> testme ; cd $_ ; mvn test
here kotlin tests could be recognized from both
stc/test/kotlin
as well as from
src/test/java
, but java test classes are visible only from
src/test/java
Let me know if you know how to tell maven in it’s pom.xml project build configuration also recognize java tests classes from
src/test/kotlin
directory too Thanks
s

snowe

05/26/2019, 5:12 AM
You're using surefire. simply set the test source directory. http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html