@@ -1024,6 +1024,7 @@ object Build {
1024
1024
(dir ** filter).get
1025
1025
},
1026
1026
1027
+ // A first blacklist of tests for those that do not compile or do not link
1027
1028
managedSources in Test ++= {
1028
1029
val dir = fetchScalaJSSource.value / " test-suite"
1029
1030
(
@@ -1037,7 +1038,6 @@ object Build {
1037
1038
++ (dir / " shared/src/test/require-jdk7" ** " *.scala" ).get
1038
1039
1039
1040
++ (dir / " js/src/test/scala/org/scalajs/testsuite/compiler" ** ((" *.scala" : FileFilter )
1040
- -- " InteroperabilityTest.scala" // 3 tests require JS exports, all other tests pass
1041
1041
-- " RuntimeTypesTest.scala" // compile errors: no ClassTag for Null and Nothing
1042
1042
)).get
1043
1043
@@ -1046,20 +1046,10 @@ object Build {
1046
1046
)).get
1047
1047
1048
1048
++ (dir / " js/src/test/scala/org/scalajs/testsuite/jsinterop" ** ((" *.scala" : FileFilter )
1049
- -- " AsyncTest.scala" // needs JS exports in PromiseMock.scala
1050
- -- " DynamicTest.scala" // one test requires JS exports, all other tests pass
1051
- -- " ExportsTest.scala" // JS exports
1052
- -- " JSExportStaticTest.scala" // JS exports
1053
- -- " NonNativeJSTypeTest.scala" // 1 test fails because of a progression for value class fields (needs an update upstream)
1049
+ -- " ExportsTest.scala" // JS exports + do not compile because of a var in a structural type
1054
1050
)).get
1055
1051
1056
- ++ (dir / " js/src/test/scala/org/scalajs/testsuite/junit" ** ((" *.scala" : FileFilter )
1057
- // Tests fail
1058
- -- " JUnitAbstractClassTest.scala"
1059
- -- " JUnitNamesTest.scala"
1060
- -- " JUnitSubClassTest.scala"
1061
- -- " MultiCompilationSecondUnitTest.scala"
1062
- )).get
1052
+ ++ (dir / " js/src/test/scala/org/scalajs/testsuite/junit" ** " *.scala" ).get
1063
1053
1064
1054
++ (dir / " js/src/test/scala/org/scalajs/testsuite/library" ** ((" *.scala" : FileFilter )
1065
1055
-- " ObjectTest.scala" // compile errors caused by #9588
@@ -1076,6 +1066,25 @@ object Build {
1076
1066
++ (dir / " js/src/test/require-sam" ** " *.scala" ).get
1077
1067
++ (dir / " js/src/test/scala-new-collections" ** " *.scala" ).get
1078
1068
)
1069
+ },
1070
+
1071
+ // A second blacklist for tests that compile and link, but do not pass at run-time.
1072
+ // Putting them here instead of above makes sure that we do not regress on compilation+linking.
1073
+ Test / testOptions += Tests .Filter { name =>
1074
+ ! Set [String ](
1075
+ " org.scalajs.testsuite.compiler.InteroperabilityTest" , // 3 tests require JS exports, all other tests pass
1076
+
1077
+ " org.scalajs.testsuite.jsinterop.AsyncTest" , // needs JS exports in PromiseMock.scala
1078
+ " org.scalajs.testsuite.jsinterop.DynamicTest" , // one test requires JS exports, all other tests pass
1079
+ " org.scalajs.testsuite.jsinterop.JSExportStaticTest" , // JS exports
1080
+ " org.scalajs.testsuite.jsinterop.NonNativeJSTypeTest" , // 1 test fails because of a progression for value class fields (needs an update upstream)
1081
+
1082
+ // Not investigated so far
1083
+ " org.scalajs.testsuite.junit.JUnitAbstractClassTestCheck" ,
1084
+ " org.scalajs.testsuite.junit.JUnitNamesTestCheck" ,
1085
+ " org.scalajs.testsuite.junit.JUnitSubClassTestCheck" ,
1086
+ " org.scalajs.testsuite.junit.MultiCompilationSecondUnitTestCheck" ,
1087
+ ).contains(name)
1079
1088
}
1080
1089
)
1081
1090
0 commit comments