Skip to content

Commit

Permalink
Add support for -coverage-exclude-classlikes and -coverage-exclude-fi…
Browse files Browse the repository at this point in the history
…les for Scala 3 (only ScalaSingleModuleTest goes with new scalatest version)
  • Loading branch information
msigmond committed Jun 23, 2024
1 parent 43732c1 commit 250b840
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@
import org.junit.Ignore;
import org.junit.Test;

import java.util.List;

public class ScalaSingleModuleTest extends ScoverageFunctionalTest {

public ScalaSingleModuleTest() {
super("scala-single-module");
}

@Override
protected List<String> getVersionAgruments() {
return ScalaVersionArguments.version2;
}

@Test
public void test() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
import java.util.List;

public interface ScalaVersionArguments {
List<String> version2WithLegacyScalatest = Arrays.asList(
"-PscalaVersionMajor=2",
"-PscalaVersionMinor=13",
"-PscalaVersionBuild=14",
"-PjunitVersion=5.3.2",
"-PjunitPlatformVersion=1.3.2",
"-PscalatestVersion=3.0.8"
);

List<String> version2 = Arrays.asList(
"-PscalaVersionMajor=2",
"-PscalaVersionMinor=13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private Double coverage(File reportDir, CoverageType coverageType) throws IOExce
}

protected List<String> getVersionAgruments() {
return ScalaVersionArguments.version2;
return ScalaVersionArguments.version2WithLegacyScalatest;
}

private void configureArguments(String... arguments) {
Expand Down

0 comments on commit 250b840

Please sign in to comment.