@@ -84,25 +84,67 @@ object GenModulesJS {
84
84
}
85
85
86
86
def genScalaTestFeatureSpec (targetDir : File , version : String , scalaVersion : String ): Seq [File ] =
87
- copyDir(" scalatest/src/main/scala/org/scalatest/featurespec" , " org/scalatest/featurespec" , targetDir, List .empty)
87
+ GenScalaTestJS .genScalaPackages.filter { case (packagePath, skipList) =>
88
+ List (
89
+ " org/scalatest/featurespec"
90
+ ).contains(packagePath)
91
+ }.flatMap { case (packagePath, skipList) =>
92
+ copyDir(" scalatest/src/main/scala/" + packagePath, packagePath, targetDir, skipList)
93
+ }.toList
88
94
89
95
def genScalaTestFlatSpec (targetDir : File , version : String , scalaVersion : String ): Seq [File ] =
90
- copyDir(" scalatest/src/main/scala/org/scalatest/flatspec" , " org/scalatest/flatspec" , targetDir, List .empty)
96
+ GenScalaTestJS .genScalaPackages.filter { case (packagePath, skipList) =>
97
+ List (
98
+ " org/scalatest/flatspec"
99
+ ).contains(packagePath)
100
+ }.flatMap { case (packagePath, skipList) =>
101
+ copyDir(" scalatest/src/main/scala/" + packagePath, packagePath, targetDir, skipList)
102
+ }.toList
91
103
92
104
def genScalaTestFreeSpec (targetDir : File , version : String , scalaVersion : String ): Seq [File ] =
93
- copyDir(" scalatest/src/main/scala/org/scalatest/freespec" , " org/scalatest/freespec" , targetDir, List .empty)
105
+ GenScalaTestJS .genScalaPackages.filter { case (packagePath, skipList) =>
106
+ List (
107
+ " org/scalatest/freespec"
108
+ ).contains(packagePath)
109
+ }.flatMap { case (packagePath, skipList) =>
110
+ copyDir(" scalatest/src/main/scala/" + packagePath, packagePath, targetDir, skipList)
111
+ }.toList
94
112
95
113
def genScalaTestFunSuite (targetDir : File , version : String , scalaVersion : String ): Seq [File ] =
96
- copyDir(" scalatest/src/main/scala/org/scalatest/funsuite" , " org/scalatest/funsuite" , targetDir, List .empty)
114
+ GenScalaTestJS .genScalaPackages.filter { case (packagePath, skipList) =>
115
+ List (
116
+ " org/scalatest/funsuite"
117
+ ).contains(packagePath)
118
+ }.flatMap { case (packagePath, skipList) =>
119
+ copyDir(" scalatest/src/main/scala/" + packagePath, packagePath, targetDir, skipList)
120
+ }.toList
97
121
98
122
def genScalaTestPropSpec (targetDir : File , version : String , scalaVersion : String ): Seq [File ] =
99
- copyDir(" scalatest/src/main/scala/org/scalatest/propspec" , " org/scalatest/propspec" , targetDir, List .empty)
123
+ GenScalaTestJS .genScalaPackages.filter { case (packagePath, skipList) =>
124
+ List (
125
+ " org/scalatest/propspec"
126
+ ).contains(packagePath)
127
+ }.flatMap { case (packagePath, skipList) =>
128
+ copyDir(" scalatest/src/main/scala/" + packagePath, packagePath, targetDir, skipList)
129
+ }.toList
100
130
101
131
def genScalaTestWordSpec (targetDir : File , version : String , scalaVersion : String ): Seq [File ] =
102
- copyDir(" scalatest/src/main/scala/org/scalatest/wordspec" , " org/scalatest/wordspec" , targetDir, List .empty)
132
+ GenScalaTestJS .genScalaPackages.filter { case (packagePath, skipList) =>
133
+ List (
134
+ " org/scalatest/wordspec"
135
+ ).contains(packagePath)
136
+ }.flatMap { case (packagePath, skipList) =>
137
+ copyDir(" scalatest/src/main/scala/" + packagePath, packagePath, targetDir, skipList)
138
+ }.toList
103
139
104
140
def genScalaTestDiagrams (targetDir : File , version : String , scalaVersion : String ): Seq [File ] =
105
- copyDir(" scalatest/src/main/scala/org/scalatest/diagrams" , " org/scalatest/diagrams" , targetDir, List .empty)
141
+ GenScalaTestJS .genScalaPackages.filter { case (packagePath, skipList) =>
142
+ List (
143
+ " org/scalatest/diagrams"
144
+ ).contains(packagePath)
145
+ }.flatMap { case (packagePath, skipList) =>
146
+ copyDir(" scalatest/src/main/scala/" + packagePath, packagePath, targetDir, skipList)
147
+ }.toList
106
148
107
149
def genScalaTestMatchersCore (targetDir : File , version : String , scalaVersion : String ): Seq [File ] =
108
150
GenScalaTestJS .genScalaPackages.filter { case (packagePath, skipList) =>
0 commit comments