add scala test plugin
This commit is contained in:
parent
4b0cec37f0
commit
d5bf707015
30
pom.xml
30
pom.xml
@ -290,7 +290,7 @@
|
||||
<plugin>
|
||||
<groupId>net.alchim31.maven</groupId>
|
||||
<artifactId>scala-maven-plugin</artifactId>
|
||||
<version>3.2.2</version>
|
||||
<version>3.3.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>eclipse-add-source</id>
|
||||
@ -368,6 +368,34 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!-- disable surefire -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.12.4</version>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- enable scalatest -->
|
||||
<plugin>
|
||||
<groupId>org.scalatest</groupId>
|
||||
<artifactId>scalatest-maven-plugin</artifactId>
|
||||
<version>1.0</version>
|
||||
<configuration>
|
||||
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
|
||||
<junitxml>.</junitxml>
|
||||
<filereports>TestSuite.txt</filereports>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>test</id>
|
||||
<goals>
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
@ -31,6 +31,7 @@ class SparkContextReflectionSuite extends SparkFunSuite {
|
||||
.newInstance(classOf[SparkContext].getName, Seq(classOf[SparkConf]), Seq(conf))
|
||||
.asInstanceOf[SparkContext]
|
||||
assert(sc.isInstanceOf[SparkContext])
|
||||
sc.stop()
|
||||
}
|
||||
|
||||
test("SparkContext initialization with this()") {
|
||||
@ -48,6 +49,7 @@ class SparkContextReflectionSuite extends SparkFunSuite {
|
||||
Seq("local", "sc_init", conf))
|
||||
.asInstanceOf[SparkContext]
|
||||
assert(sc.isInstanceOf[SparkContext])
|
||||
sc.stop()
|
||||
}
|
||||
|
||||
test("Initializing 2 SparkContext with Reflection") {
|
||||
@ -63,5 +65,7 @@ class SparkContextReflectionSuite extends SparkFunSuite {
|
||||
.asInstanceOf[SparkContext]
|
||||
|
||||
assert(sc1 !== sc2)
|
||||
sc1.stop()
|
||||
sc2.stop()
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,5 +35,6 @@ class SparkSessionReflectionSuite extends SparkFunSuite {
|
||||
Seq(classOf[SparkContext]),
|
||||
Seq(sc)).asInstanceOf[SparkSession]
|
||||
assert(ss.isInstanceOf[SparkSession])
|
||||
ss.stop()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user