(definedTests in Test)
returns sbt.TestDefinition
.
val printTests = taskKey[Unit]("something")
printTests := {
val tests = (definedTests in Test).value
tests map { t =>
println(t.name)
}
}
The above is in sbt 0.13 syntax, but the idea should be same in sbt 0.12.