* ignored old approval test

* added sbt-jupiter-interface
This commit is contained in:
Ralf Comtesse 2025-10-04 21:19:41 +02:00
parent 9456bfce1f
commit 2e0e557c6e
3 changed files with 16 additions and 7 deletions

View File

@ -6,7 +6,14 @@ lazy val root = project
name := "GildedRose",
version := "1.0",
scalaVersion := scala3Version,
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19" % "test",
libraryDependencies += "com.approvaltests" % "approvaltests" % "25.4.3" % "test",
libraryDependencies += "org.junit.jupiter" % "junit-jupiter" % "5.11.4" % "test"
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.19" % Test,
"com.approvaltests" % "approvaltests" % "25.4.3" % Test,
"junit" % "junit" % "4.13.2",
"com.github.sbt.junit" % "jupiter-interface" % "0.15.1" % Test,
// todo: comment about 5.8.0
"org.junit.jupiter" % "junit-jupiter" % "5.7.0" % Test
),
testOptions += Tests.Argument(TestFrameworks.JUnit)
)

View File

@ -0,0 +1 @@
addSbtPlugin("com.github.sbt.junit" % "sbt-jupiter-interface" % "0.15.1")

View File

@ -6,8 +6,9 @@ import org.scalatest.matchers.should.Matchers
import java.io.{File, FileOutputStream}
import scala.io.Source
class GildedRoseApprovalTestInScala extends AnyFlatSpec with Matchers {
it should "return the result of the golden master" in {
ignore should "return the result of the golden master" in {
val fileWithTestResult = new File("approvaltests/gildedrose.testresult.txt")
val outputStream = new FileOutputStream(fileWithTestResult)
Console.withOut(outputStream) {