mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
* ignored old approval test
* added sbt-jupiter-interface
This commit is contained in:
parent
9456bfce1f
commit
2e0e557c6e
@ -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)
|
||||
|
||||
)
|
||||
|
||||
1
scala/project/plugins.sbt
Normal file
1
scala/project/plugins.sbt
Normal file
@ -0,0 +1 @@
|
||||
addSbtPlugin("com.github.sbt.junit" % "sbt-jupiter-interface" % "0.15.1")
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user