task scalaTest(dependsOn: testClasses) << {
description = \'Runs Scalatest suite\'
ant.taskdef(name: \'scalatest\',
classname: \'org.scalatest.
This response may be a bit late. But for one using scala with gradle (5.x), the following works.
Add the following plugin to gradle.
plugins {
id "com.github.maiflai.scalatest" version "0.25"
}
To run the code
> gradle test
As a bonus the test results from the above plugin
would also be reported better than the default report.