#5308
This commit is contained in:
Eugene Yokota 2019-12-16 22:26:13 -05:00 committed by Ethan Atkins
parent 556098ec31
commit 6e83ba5603
4 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,12 @@
ThisBuild / scalaVersion := "2.13.1"
ThisBuild / version := "0.1.0-SNAPSHOT"
ThisBuild / organization := "com.example"
ThisBuild / organizationName := "example"
lazy val root = (project in file("."))
.settings(
name := "sbt-5308",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.1.0" % Test,
libraryDependencies += "com.vladsch.flexmark" % "flexmark-all" % "0.35.10" % Test,
Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-h", "target/generated/test-reports"),
)

View File

@ -0,0 +1,9 @@
package example
import org.scalatest._
class HelloSpec extends FlatSpec with Matchers {
"hello" should "say hello" in {
assert("hello" == "hello")
}
}

View File

@ -0,0 +1 @@
> test

View File

@ -248,7 +248,8 @@ final class ScriptedTests(
LauncherBased // there is an issue with jansi and coursier
case "watch/commands" =>
LauncherBased // java.lang.ClassNotFoundException: javax.tools.DiagnosticListener when run with java 11 and an old sbt launcher
case "watch/managed" => LauncherBased // sbt/Package$
case "watch/managed" => LauncherBased // sbt/Package$
case "tests/scalatest" => LauncherBased
case "tests/test-cross" =>
LauncherBased // the sbt metabuild classpath leaks into the test interface classloader in older versions of sbt
case _ => RunFromSourceBased