マルチモジュールでJUnit5のテストを実行した時に以下の例外で動かなかった時に
Caused by: org.junit.platform.commons.util.PreconditionViolationException: Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR to the classpath
この辺の設定とかしてあるのに出たら
testOptions {
junitPlatform {
filters {
engines {
include 'spek2'
}
}
}
}
pluginの指定が漏れてた。
apply plugin: "de.mannodermaus.android-junit5"