|
96 | 96 | <scope>test</scope> |
97 | 97 | </dependency> |
98 | 98 |
|
| 99 | + <dependency> |
| 100 | + <groupId>junit</groupId> |
| 101 | + <artifactId>junit</artifactId> |
| 102 | + <version>4.13.2</version> |
| 103 | + <scope>test</scope> |
| 104 | + </dependency> |
| 105 | + |
99 | 106 | <dependency> |
100 | 107 | <groupId>org.scalatest</groupId> |
101 | 108 | <artifactId>scalatest_${scala.compat.version}</artifactId> |
|
104 | 111 | </dependency> |
105 | 112 |
|
106 | 113 | <dependency> |
107 | | - <groupId>junit</groupId> |
108 | | - <artifactId>junit</artifactId> |
109 | | - <version>4.13.2</version> |
| 114 | + <groupId>org.scalatestplus</groupId> |
| 115 | + <artifactId>scalatestplus-junit_${scala.compat.version}</artifactId> |
| 116 | + <version>1.0.0-M2</version> |
110 | 117 | <scope>test</scope> |
111 | 118 | </dependency> |
112 | 119 | </dependencies> |
|
260 | 267 | <archive> |
261 | 268 | <manifest> |
262 | 269 | <addClasspath>true</addClasspath> |
| 270 | + <!-- add Diff app as main class --> |
263 | 271 | <mainClass>uk.co.gresearch.spark.diff.App</mainClass> |
264 | 272 | </manifest> |
265 | 273 | </archive> |
|
289 | 297 | </execution> |
290 | 298 | </executions> |
291 | 299 | </plugin> |
292 | | - <!-- run java tests --> |
| 300 | + <!-- run tests --> |
293 | 301 | <plugin> |
294 | 302 | <groupId>org.apache.maven.plugins</groupId> |
295 | 303 | <artifactId>maven-surefire-plugin</artifactId> |
296 | 304 | <version>3.1.2</version> |
297 | 305 | <configuration> |
298 | 306 | <skipTests>false</skipTests> |
| 307 | + <includes> |
| 308 | + <include>**/*Tests.class</include> |
| 309 | + <include>**/*Suite.class</include> |
| 310 | + </includes> |
299 | 311 | </configuration> |
300 | 312 | </plugin> |
301 | | - <!-- run scalatest --> |
| 313 | + <!-- packaging --> |
| 314 | + <plugin> |
| 315 | + <groupId>org.apache.maven.plugins</groupId> |
| 316 | + <artifactId>maven-source-plugin</artifactId> |
| 317 | + <version>3.3.0</version> |
| 318 | + <executions> |
| 319 | + <execution> |
| 320 | + <id>attach-sources</id> |
| 321 | + <goals> |
| 322 | + <goal>jar-no-fork</goal> |
| 323 | + </goals> |
| 324 | + </execution> |
| 325 | + </executions> |
| 326 | + </plugin> |
| 327 | + <plugin> |
| 328 | + <groupId>net.alchim31.maven</groupId> |
| 329 | + <artifactId>scala-maven-plugin</artifactId> |
| 330 | + <version>4.8.1</version> |
| 331 | + <executions> |
| 332 | + <execution> |
| 333 | + <id>attach-javadocs</id> |
| 334 | + <goals> |
| 335 | + <goal>doc-jar</goal> |
| 336 | + </goals> |
| 337 | + </execution> |
| 338 | + </executions> |
| 339 | + </plugin> |
| 340 | + <!-- run integration tests --> |
302 | 341 | <plugin> |
303 | | - <groupId>org.scalatest</groupId> |
304 | | - <artifactId>scalatest-maven-plugin</artifactId> |
305 | | - <version>2.2.0</version> |
| 342 | + <groupId>org.apache.maven.plugins</groupId> |
| 343 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 344 | + <version>3.3.0</version> |
306 | 345 | <configuration> |
307 | | - <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> |
308 | | - <junitxml>.</junitxml> |
309 | | - <filereports>WDF TestSuite.txt</filereports> |
| 346 | + <additionalClasspathElements> |
| 347 | + <additionalClasspathElement>${project.build.directory}/${project.build.finalName}.jar</additionalClasspathElement> |
| 348 | + </additionalClasspathElements> |
| 349 | + <includes> |
| 350 | + <include>**/*Tests.class</include> |
| 351 | + <include>**/*Suite.class</include> |
| 352 | + </includes> |
310 | 353 | </configuration> |
311 | 354 | <executions> |
312 | 355 | <execution> |
313 | | - <id>test</id> |
314 | 356 | <goals> |
315 | | - <goal>test</goal> |
| 357 | + <goal>integration-test</goal> |
| 358 | + <goal>verify</goal> |
316 | 359 | </goals> |
| 360 | + <configuration> |
| 361 | + <environmentVariables> |
| 362 | + <CI_INTEGRATION_TEST>true</CI_INTEGRATION_TEST> |
| 363 | + </environmentVariables> |
| 364 | + </configuration> |
317 | 365 | </execution> |
318 | 366 | </executions> |
319 | 367 | </plugin> |
| 368 | + <!-- publishing --> |
320 | 369 | <plugin> |
321 | 370 | <groupId>org.sonatype.central</groupId> |
322 | 371 | <artifactId>central-publishing-maven-plugin</artifactId> |
|
342 | 391 | </execution> |
343 | 392 | </executions> |
344 | 393 | </plugin> |
345 | | - <plugin> |
346 | | - <groupId>org.apache.maven.plugins</groupId> |
347 | | - <artifactId>maven-source-plugin</artifactId> |
348 | | - <version>3.3.0</version> |
349 | | - <executions> |
350 | | - <execution> |
351 | | - <id>attach-sources</id> |
352 | | - <goals> |
353 | | - <goal>jar-no-fork</goal> |
354 | | - </goals> |
355 | | - </execution> |
356 | | - </executions> |
357 | | - </plugin> |
358 | | - <plugin> |
359 | | - <groupId>net.alchim31.maven</groupId> |
360 | | - <artifactId>scala-maven-plugin</artifactId> |
361 | | - <version>4.8.1</version> |
362 | | - <executions> |
363 | | - <execution> |
364 | | - <id>attach-javadocs</id> |
365 | | - <goals> |
366 | | - <goal>doc-jar</goal> |
367 | | - </goals> |
368 | | - </execution> |
369 | | - </executions> |
370 | | - </plugin> |
371 | 394 | </plugins> |
372 | 395 | </build> |
373 | 396 |
|
|
0 commit comments