Re: [scalatest-users] Digest for scalatest-users@googlegroups.com - 1 update in 1 topic

59 views
Skip to first unread message

Gavin Baumanis

unread,
Oct 2, 2015, 8:35:29 PM10/2/15
to scalate...@googlegroups.com
Just shooting from the hip - have you checked for the same version of other libraries used in the two appplications?
Scala, sbt, play, akka version?

Check your versions in both apps via;
/project/plugins.sbt
/project/build.properties
/build.sbt

-Gavin,

On 3 October 2015 at 04:27, <scalate...@googlegroups.com> wrote:
Gregg Sirrine <greggs...@gmail.com>: Oct 02 06:02AM -0700

I have two projects using ScalaTest with Maven. One project issues a
warning about the -C argument but continues on and completes a successful
build.
 
I copied the plugin settings from that project's POM file into a new
project. This project issues an ERROR about the -C and the build fails. I
cannot see any difference in the versions or config of ScalaTest between
the two projects.
 
*POM File plugins...*
 
<dependencies>
 
...
 
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.11</artifactId>
<version>3.0.0-SNAP5</version>
</dependency>
 
</dependencies>
 
 
...
 
<plugins>
 
...
 
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
 
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<parallel>true</parallel>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<junitxml>.</junitxml>
<filereports>TestSuite.txt</filereports>
<htmlreporters>${project.build.directory}/html/scalatest</htmlreporters>
<testFailureIgnore>false</testFailureIgnore>
</configuration>
<executions>
<execution>
<id>test</id>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
 
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.12</version>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
 
 
 
 
 
*Stack Trace...*
 
 
 
 
*[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ nfiClient
---[INFO] Tests are skipped.[INFO] [INFO] ---
scalatest-maven-plugin:1.0:test (test) @ nfiClient ---Exception in thread
"ScalaTest-main" java.lang.IllegalArgumentException: ERROR: -c has been
deprecated for a very long time and is no longer supported, to prepare for
reusing it for a different purpose in the near future. Please change all
uses of -c to -P. at
org.scalatest.tools.Runner$.checkArgsForValidity(Runner.scala:1058) at
org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:859)
at org.scalatest.tools.Runner$.main(Runner.scala:829) at
org.scalatest.tools.Runner.main(Runner.scala)[INFO]
------------------------------------------------------------------------[INFO]
BUILD FAILURE[INFO]
------------------------------------------------------------------------[INFO]
Total time: 8.385s[INFO] Finished at: Fri Oct 02 08:44:04 EDT 2015[INFO]
Final Memory: 28M/650M[INFO]
------------------------------------------------------------------------[ERROR]
Failed to execute goal org.scalatest:scalatest-maven-plugin:1.0:test (test)
on project nfiClient: There are test failures -> [Help 1][ERROR] [ERROR] To
see the full stack trace of the errors, re-run Maven with the -e
switch.[ERROR] Re-run Maven using the -X switch to enable full debug
logging.[ERROR] [ERROR] For more information about the errors and possible
solutions, please read the following articles:[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptionProcess
finished with exit code 1*
Could this be caused by how/what ScalaTest classes are initialized in the
code? Does it matter what Spec/Suite is used? What other information can I
provide?
 
Any help is appreciated.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to scalatest-use...@googlegroups.com.



--
As always thanks!
- Gavin Baumanis

Rahul Singhai

unread,
Jul 5, 2016, 12:19:41 PM7/5/16
to scalatest-users
I fixed the error by commenting out following in plugin's configuration:
  <parallel>true</parallel>


On Saturday, 3 October 2015 01:35:29 UTC+1, Gavin Baumanis wrote:
Just shooting from the hip - have you checked for the same version of other libraries used in the two appplications?
Scala, sbt, play, akka version?

Check your versions in both apps via;
/project/plugins.sbt
/project/build.properties
/build.sbt

-Gavin,
On 3 October 2015 at 04:27, <scalate...@googlegroups.com> wrote:
Reply all
Reply to author
Forward
0 new messages