Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 113cfd8

Browse files
authored
Merge pull request #95 from retronym/topic/partest-output
Propagate exceptions and failure transcripts to the SBT test listener…
2 parents c3aceaf + ad9cbbd commit 113cfd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scala/scala/tools/partest/sbt/SBTRunner.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ class SBTRunner(val config: RunnerSpec.Config,
8585
case Pass(_) => (Status.Success, new OptionalThrowable)
8686
case Updated(_) => (Status.Success, new OptionalThrowable)
8787
case Skip(_, _) => (Status.Skipped, new OptionalThrowable)
88-
case Fail(_, _, _) => (Status.Failure, new OptionalThrowable)
88+
case Fail(_, reason, transcript) => (Status.Failure, new OptionalThrowable(new TestFailedThrowable(reason, transcript.mkString("\n"))))
8989
case Crash(_, e, _) => (Status.Error, new OptionalThrowable(e))
9090
}
9191
}
92+
class TestFailedThrowable(reason: String, transcript: String) extends Throwable(reason + "\n\n" + transcript)

0 commit comments

Comments
 (0)