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

Propagate exceptions and failure transcripts to the SBT test listener… #95

Merged
merged 1 commit into from
Mar 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/scala/scala/tools/partest/sbt/SBTRunner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ class SBTRunner(val config: RunnerSpec.Config,
case Pass(_) => (Status.Success, new OptionalThrowable)
case Updated(_) => (Status.Success, new OptionalThrowable)
case Skip(_, _) => (Status.Skipped, new OptionalThrowable)
case Fail(_, _, _) => (Status.Failure, new OptionalThrowable)
case Fail(_, reason, transcript) => (Status.Failure, new OptionalThrowable(new TestFailedThrowable(reason, transcript.mkString("\n"))))
case Crash(_, e, _) => (Status.Error, new OptionalThrowable(e))
}
}
class TestFailedThrowable(reason: String, transcript: String) extends Throwable(reason + "\n\n" + transcript)