Replies: 1 comment 4 replies
-
You can do something like this: lazy val testCount = taskKey[Int]("test count")
val inAllTest = ScopeFilter(inAnyProject, inConfigurations(Test))
testCount := {
val xss: Seq[Seq[String]] = definedTestNames.all(inAllTest).value
xss.flatten.size
} > show testCount
[info] 73 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am managing a huge Scala tutorial repo and I want to get the total number of tests executed by SBT. Since it is a tutorial repo, it contains tests using all testing framework.
At the moment, I used the jenkins log manipulation with basic string operations to find the count.
Since SBT already logs the info like below for each sub-module:
Tests: succeeded 14, failed 0, canceled 0, ignored 0, pending 0
I was wondering if there is already some way to get the total number of tests executed by SBT across all sub modules?
Thanks in advance
Yadu
Beta Was this translation helpful? Give feedback.
All reactions