11package tests
22
3- import munit .IgnoreSuite
4-
5- // Ignored because the sbt-sourcegraph plugin adds the -build-tool:sbt flag, which
6- // is yet not supported by any stable release of scip-java. We can un-ignore this
7- // test suite after the next release.
8- @ IgnoreSuite
9- class SbtBuildToolSuite extends BaseBuildToolSuite {
10- List (" 1.5.2" , " 0.13.17" ).foreach { version =>
3+ abstract class SbtBuildToolSuite (sbtVersion : String )
4+ extends BaseBuildToolSuite {
5+ List (" 2.11.9" , " 2.12.18" , " 2.13.11" , " 3.3.0" ).foreach { scalaVersion =>
116 checkBuild(
12- s " basic- $version " ,
7+ s " basic-sbt= $sbtVersion -scala= $scalaVersion " ,
138 s """ |/build.sbt
14- |scalaVersion := "2.11.9 "
9+ |scalaVersion := " $scalaVersion "
1510 |libraryDependencies += "junit" % "junit" % "4.13.2"
1611 |/project/build.properties
1712 |sbt.version=1.5.2
@@ -25,16 +20,17 @@ class SbtBuildToolSuite extends BaseBuildToolSuite {
2520 |class ExampleScala()
2621 |/src/test/java/example/ExampleJavaSuite.java
2722 |package example;
28- |public class ExampleSuite {}
29- |/src/test/scala/example/ExampleScalaSuite.java
23+ |public class ExampleJavaSuite {}
24+ |/src/test/scala/example/ExampleaSuite.scala
3025 |package example
3126 |class ExampleSuite() {}
3227 | """ .stripMargin,
3328 expectedSemanticdbFiles = 4 ,
34- expectedPackages =
35- """ |maven:junit:junit:4.13.1
36- |""" .stripMargin
29+ targetRoot = Some (" target" )
3730 )
3831 }
3932
4033}
34+
35+ class Sbt_1_BuildToolSuite extends SbtBuildToolSuite (" 1.5.2" )
36+ class Sbt_013_BuildToolSuite extends SbtBuildToolSuite (" 0.13.17" )
0 commit comments