Merge pull request #6335 from scalacenter/add/munit

Add MUnit test framework
This commit is contained in:
eugene yokota 2021-02-24 09:02:02 -05:00 committed by GitHub
commit c707bdf5a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -1184,7 +1184,7 @@ object Defaults extends BuildCommon {
Seq(
testFrameworks :== {
import sbt.TestFrameworks._
Seq(ScalaCheck, Specs2, Specs, ScalaTest, JUnit)
Seq(ScalaCheck, Specs2, Specs, ScalaTest, JUnit, MUnit)
},
testListeners :== Nil,
testOptions :== Nil,

View File

@ -5,6 +5,5 @@ lazy val munit = "org.scalameta" %% "munit" % "0.7.22"
lazy val root = (project in file("."))
.settings(
Compile / scalacOptions += "-Yrangepos",
libraryDependencies += munit % Test,
testFrameworks += new TestFramework("munit.Framework"),
libraryDependencies += munit % Test
)

View File

@ -26,6 +26,7 @@ object TestFrameworks {
val Specs2 =
TestFramework("org.specs2.runner.Specs2Framework", "org.specs2.runner.SpecsFramework")
val JUnit = TestFramework("com.novocode.junit.JUnitFramework")
val MUnit = TestFramework("munit.Framework")
}
final class TestFramework(val implClassNames: String*) extends Serializable {