@@ -797,6 +797,8 @@ object ScalatestBuild {
797
797
" org.scalatest.funsuite" ,
798
798
" org.scalatest.featurespec" ,
799
799
" org.scalatest.funspec" ,
800
+ " org.scalatest.freespec" ,
801
+ " org.scalatest.flatpec" ,
800
802
" org.scalatest.matchers" ,
801
803
" org.scalatest.path" ,
802
804
" org.scalatest.prop" ,
@@ -903,6 +905,8 @@ object ScalatestBuild {
903
905
" org.scalatest.funsuite" ,
904
906
" org.scalatest.featurespec" ,
905
907
" org.scalatest.funspec" ,
908
+ " org.scalatest.freespec" ,
909
+ " org.scalatest.flatspec" ,
906
910
" org.scalatest.matchers" ,
907
911
" org.scalatest.path" ,
908
912
" org.scalatest.prop" ,
@@ -995,6 +999,8 @@ object ScalatestBuild {
995
999
" org.scalatest.funsuite" ,
996
1000
" org.scalatest.featurespec" ,
997
1001
" org.scalatest.funspec" ,
1002
+ " org.scalatest.freespec" ,
1003
+ " org.scalatest.flatspec" ,
998
1004
" org.scalatest.matchers" ,
999
1005
" org.scalatest.path" ,
1000
1006
" org.scalatest.prop" ,
@@ -1030,7 +1036,7 @@ object ScalatestBuild {
1030
1036
projectTitle := " ScalaTest Test" ,
1031
1037
organization := " org.scalatest" ,
1032
1038
libraryDependencies ++= scalatestLibraryDependencies,
1033
- libraryDependencies ++= scalatestTestLibraryDependencies(scalaVersion.value),
1039
+ // libraryDependencies ++= scalatestTestLibraryDependencies(scalaVersion.value),
1034
1040
testOptions in Test := scalatestTestOptions,
1035
1041
logBuffered in Test := false ,
1036
1042
// fork in Test := true,
@@ -1074,11 +1080,15 @@ object ScalatestBuild {
1074
1080
Def .task {
1075
1081
GenScalaTestJS .genTest((sourceManaged in Test ).value, version.value, scalaVersion.value)
1076
1082
}.taskValue
1077
- }/* ,
1078
- sourceGenerators in Test <+=
1079
- (baseDirectory, sourceManaged in Test, version, scalaVersion) map genFiles("gengen", "GenGen.scala")(GenGen.genTest),
1080
- sourceGenerators in Test <+=
1081
- (baseDirectory, sourceManaged in Test, version, scalaVersion) map genFiles("genmatchers", "GenMustMatchersTests.scala")(GenMustMatchersTests.genTestForScalaJS)*/
1083
+ },
1084
+ sourceGenerators in Test +=
1085
+ Def .task {
1086
+ GenGen .genTest((sourceManaged in Test ).value, version.value, scalaVersion.value)
1087
+ },
1088
+ sourceGenerators in Test +=
1089
+ Def .task {
1090
+ GenMustMatchersTests .genTestForScalaJS((sourceManaged in Test ).value, version.value, scalaVersion.value)
1091
+ }
1082
1092
).dependsOn(scalatestJS % " test" , commonTestJS % " test" ).enablePlugins(ScalaJSPlugin )
1083
1093
1084
1094
lazy val scalatestNative = Project (" scalatestNative" , file(" scalatest.native" ))
@@ -1200,11 +1210,15 @@ object ScalatestBuild {
1200
1210
Def .task {
1201
1211
GenScalaTestNative .genTest((sourceManaged in Test ).value / " scala" , version.value, scalaVersion.value)
1202
1212
}.taskValue
1203
- }/* ,
1204
- sourceGenerators in Test <+=
1205
- (baseDirectory, sourceManaged in Test, version, scalaVersion) map genFiles("gengen", "GenGen.scala")(GenGen.genTest),
1206
- sourceGenerators in Test <+=
1207
- (baseDirectory, sourceManaged in Test, version, scalaVersion) map genFiles("genmatchers", "GenMustMatchersTests.scala")(GenMustMatchersTests.genTestForScalaJS)*/
1213
+ },
1214
+ sourceGenerators in Test +=
1215
+ Def .task {
1216
+ GenGen .genTestForNative((sourceManaged in Test ).value, version.value, scalaVersion.value)
1217
+ }/* , // OOM even with 14gb heap size, will turn this one when 32gb machine is common or if newer scala-native use lesser memory.
1218
+ sourceGenerators in Test +=
1219
+ Def.task {
1220
+ GenMustMatchersTests.genTestForScalaNative((sourceManaged in Test).value, version.value, scalaVersion.value)
1221
+ }*/
1208
1222
).dependsOn(scalatestNative % " test" , commonTestNative % " test" ).enablePlugins(ScalaNativePlugin )
1209
1223
1210
1224
lazy val scalatestApp = Project (" scalatestApp" , file(" ." ))
@@ -1247,6 +1261,8 @@ object ScalatestBuild {
1247
1261
" org.scalatest.funsuite" ,
1248
1262
" org.scalatest.featurespec" ,
1249
1263
" org.scalatest.funspec" ,
1264
+ " org.scalatest.freespec" ,
1265
+ " org.scalatest.flatspec" ,
1250
1266
" org.scalatest.matchers" ,
1251
1267
" org.scalatest.path" ,
1252
1268
" org.scalatest.prop" ,
@@ -1317,6 +1333,8 @@ object ScalatestBuild {
1317
1333
" org.scalatest.funsuite" ,
1318
1334
" org.scalatest.featurespec" ,
1319
1335
" org.scalatest.funspec" ,
1336
+ " org.scalatest.freespec" ,
1337
+ " org.scalatest.flatspec" ,
1320
1338
" org.scalatest.matchers" ,
1321
1339
" org.scalatest.path" ,
1322
1340
" org.scalatest.prop" ,
@@ -1385,6 +1403,8 @@ object ScalatestBuild {
1385
1403
" org.scalatest.funsuite" ,
1386
1404
" org.scalatest.featurespec" ,
1387
1405
" org.scalatest.funspec" ,
1406
+ " org.scalatest.freespec" ,
1407
+ " org.scalatest.flatspec" ,
1388
1408
" org.scalatest.matchers" ,
1389
1409
" org.scalatest.path" ,
1390
1410
" org.scalatest.prop" ,
@@ -1715,13 +1735,6 @@ object ScalatestBuild {
1715
1735
results
1716
1736
}
1717
1737
1718
- /* def genFiles(generatorSource: File, generatedFile: File)(genFun: => Seq[File]): Seq[File] = {
1719
- if (generatedFile.exists || generatorSource.lastModified > generatedFile.lastModified)
1720
- genFun()
1721
- else
1722
- Seq.empty[File]
1723
- }*/
1724
-
1725
1738
def genJavaFiles (name : String , generatorSource : String )(gen : (File , String , String ) => Unit )(basedir : File , outDir : File , theVersion : String , theScalaVersion : String ): Seq [File ] = {
1726
1739
val tdir = outDir / " java" / name
1727
1740
val genSource = basedir / " project" / generatorSource
0 commit comments