diff --git a/.scalafmt.conf b/.scalafmt.conf index 9c7929b..be3b2cb 100644 --- a/.scalafmt.conf +++ b/.scalafmt.conf @@ -1,5 +1,5 @@ // See: https://github.com/scalameta/scalafmt/tags for the latest tags. -version = 3.8.1 +version = 3.9.9 runner.dialect = scala3 maxColumn = 80 diff --git a/modules/reporting/src/main/scala/gs/test/v0/reporting/PlainResultFormatter.scala b/modules/reporting/src/main/scala/gs/test/v0/reporting/PlainResultFormatter.scala index eef803f..ccf0be7 100644 --- a/modules/reporting/src/main/scala/gs/test/v0/reporting/PlainResultFormatter.scala +++ b/modules/reporting/src/main/scala/gs/test/v0/reporting/PlainResultFormatter.scala @@ -54,7 +54,7 @@ final class PlainResultFormatter extends ResultFormatter: private def makeFailure(result: Either[TestFailure, Any]): String = result match case Right(_) => "" - case Left(f) => + case Left(f) => s"""\n------ ${f.message} """.stripMargin diff --git a/modules/runtime/src/main/scala/gs/test/v0/runtime/engine/TestEngine.scala b/modules/runtime/src/main/scala/gs/test/v0/runtime/engine/TestEngine.scala index b12546c..7b65e2a 100644 --- a/modules/runtime/src/main/scala/gs/test/v0/runtime/engine/TestEngine.scala +++ b/modules/runtime/src/main/scala/gs/test/v0/runtime/engine/TestEngine.scala @@ -246,13 +246,13 @@ final class TestEngine[F[_]: Async]( private def parseTraceId(candidate: Option[String]): String = candidate match case Some(traceId) => traceId - case None => + case None => throw new IllegalArgumentException("Created a span without a Trace ID!") private def parseSpanId(candidate: Option[String]): String = candidate match case Some(spanId) => spanId - case None => + case None => throw new IllegalArgumentException("Created a span without a Span ID!") private def makeSuiteExecution(