[ https://issues.apache.org/jira/browse/BAHIR-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15944454#comment-15944454 ]
Christian Kadner commented on BAHIR-98: --------------------------------------- Looks like the Scalatest DiscoverySuite does not find test cases when there are spaces in the project folder. {code} [root@spark-build1 bahir test folder - With Spaces]# pwd /root/bahir test folder - With Spaces [root@spark-build1 bahir test folder - With Spaces]# [root@spark-build1 bahir test folder - With Spaces]# /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven-3.3.9/bin/mvn package scalatest:test -q | grep "Expected test count" Run starting. Expected test count is: 0 Run starting. Expected test count is: 0 Run starting. Expected test count is: 0 Run starting. Expected test count is: 0 Run starting. Expected test count is: 0 {code} ...no spaces in project folder: {code} [root@spark-build1 bahir_test]# pwd /root/bahir_test [root@spark-build1 bahir_test]# [root@spark-build1 bahir_test]# /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven-3.3.9/bin/mvn scalatest:test -q | grep "Expected test count" Run starting. Expected test count is: 0 Run starting. Expected test count is: 2 Run starting. Expected test count is: 2 Run starting. Expected test count is: 6 Run starting. Expected test count is: 1 {code} I googled for it and found this forum post: https://groups.google.com/d/msg/scalatest-users/s9uGEUMS5lg/3jOsFTK6ZKoJ The GitHub project [scalatest-maven-plugin|https://github.com/scalatest/scalatest-maven-plugin/issues] has a lot of stale open issues, so rather than waiting for a fix we should make sure that our Jenkins server avoids spaces in folder names > Jenkins does not run Scalatests > ------------------------------- > > Key: BAHIR-98 > URL: https://issues.apache.org/jira/browse/BAHIR-98 > Project: Bahir > Issue Type: Bug > Components: Build > Reporter: Christian Kadner > > Our Jenkins integration server currently only runs Java tests (JUnit) but no > Scala tests. > i.e. [build > log|http://169.45.79.58:8080/job/Apache%20Bahir%20-%20Pull%20Request%20Builder/35/console] > for PR #[38|https://github.com/apache/bahir/pull/38#issuecomment-289624943] > ...for *JUnit tests*: > {code} > 17:20:37 [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ > spark-streaming-akka_2.11 --- > 17:20:37 > 17:20:37 ------------------------------------------------------- > 17:20:37 T E S T S > 17:20:37 ------------------------------------------------------- > 17:20:37 OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; > support was removed in 8.0 > 17:20:37 Running org.apache.spark.streaming.akka.JavaAkkaUtilsSuite > 17:20:39 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > 1.483 sec - in org.apache.spark.streaming.akka.JavaAkkaUtilsSuite > 17:20:39 > 17:20:39 Results : > 17:20:39 > 17:20:39 Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 > 17:20:39 > {code} > ...for *Scala tests*: > {code} > 17:20:39 [INFO] --- maven-surefire-plugin:2.19.1:test (test) @ > spark-streaming-akka_2.11 --- > 17:20:39 [INFO] Skipping execution of surefire because it has already been > run for this configuration > 17:20:39 [INFO] > 17:20:39 [INFO] --- scalatest-maven-plugin:1.0:test (test) @ > spark-streaming-akka_2.11 --- > 17:20:39 OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; > support was removed in 8.0 > 17:20:39 Discovery starting. > 17:20:39 Discovery completed in 34 milliseconds. > 17:20:39 Run starting. Expected test count is: 0 > 17:20:39 DiscoverySuite: > 17:20:39 Run completed in 95 milliseconds. > 17:20:39 Total number of tests run: 0 > 17:20:39 Suites: completed 1, aborted 0 > 17:20:39 Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0 > 17:20:39 No tests were executed. > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)