Using the latest version of gradle (2.10) with the Scala Plugin enabled, I'm trying to execute the tests located at src/test/scala
.
But there seems to be no tasks to run these:
$ ./gradlew tasks
....
Verification tasks
------------------
check - Runs all checks.
test - Runs the unit tests.
None of these 2 tasks will execute my Scala tests. The only tests that get executed are those in src/test/java
. My Scala tests tests are using Specs2
using the following dependencies for test (build.gradle
):
apply plugin: 'scala'
dependencies {
testCompile(
'org.specs2:specs2-core_2.12.0-M3:3.6.6-scalaz-7.2.0'
)
}
I checked: the tests are getting compiled when using ./gradlew compileTestScala
.
What needs to be done to execute these tests?