mirror of https://github.com/sbt/sbt.git
Merge pull request #5023 from eatkins/supershell-test-names
Name test tasks with the test name
This commit is contained in:
commit
903571cc62
|
|
@ -306,7 +306,10 @@ object Tests {
|
||||||
fun: TestFunction,
|
fun: TestFunction,
|
||||||
tags: Seq[(Tag, Int)]
|
tags: Seq[(Tag, Int)]
|
||||||
): Task[Map[String, SuiteResult]] = {
|
): Task[Map[String, SuiteResult]] = {
|
||||||
val base = task { (name, fun.apply()) }
|
val base = Task[(String, (SuiteResult, Seq[TestTask]))](
|
||||||
|
Info[(String, (SuiteResult, Seq[TestTask]))]().setName(name),
|
||||||
|
Pure(() => (name, fun.apply()), `inline` = false)
|
||||||
|
)
|
||||||
val taggedBase = base.tagw(tags: _*).tag(fun.tags.map(ConcurrentRestrictions.Tag(_)): _*)
|
val taggedBase = base.tagw(tags: _*).tag(fun.tags.map(ConcurrentRestrictions.Tag(_)): _*)
|
||||||
taggedBase flatMap {
|
taggedBase flatMap {
|
||||||
case (name, (result, nested)) =>
|
case (name, (result, nested)) =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue