Previously tests were run via Eclipse (ScalaIDE), when running via mvn on 
command line I see the following error:

[ERROR] The forked VM terminated without properly saying goodbye. VM crash 
or System.exit called?
[ERROR] Command was /bin/sh -c cd /Users/colinbes/coding/abt_211/biocharger-
rest_2.11 && /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/
Home/jre/bin/java -Xmx512m -jar /Users/colinbes/coding/abt_211/biocharger-
rest_2.11/target/surefire/surefirebooter8633296296873411626.jar /Users/
colinbes/coding/abt_211/biocharger-rest_2.11/target/surefire 2017-09-07T07-
22-15_199-jvmRun1 surefire5213521303430252007tmp 
surefire_02211775149989425305tmp
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 255
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The 
forked VM terminated without properly saying goodbye. VM crash or System.
exit called?
[ERROR] Command was /bin/sh -c cd /Users/colinbes/coding/abt_211/biocharger-
rest_2.11 && /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/
Home/jre/bin/java -Xmx512m -jar /Users/colinbes/coding/abt_211/biocharger-
rest_2.11/target/surefire/surefirebooter8633296296873411626.jar /Users/
colinbes/coding/abt_211/biocharger-rest_2.11/target/surefire 2017-09-07T07-
22-15_199-jvmRun1 surefire5213521303430252007tmp 
surefire_02211775149989425305tmp
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 255
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(
ForkStarter.java:679)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(
ForkStarter.java:533)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(
ForkStarter.java:279)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(
ForkStarter.java:243)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.
executeProvider(AbstractSurefireMojo.java:1077)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.
executeAfterPreconditionsChecked(AbstractSurefireMojo.java:907)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(
AbstractSurefireMojo.java:785)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
DefaultBuildPluginManager.java:134)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
MojoExecutor.java:208)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
MojoExecutor.java:154)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
MojoExecutor.java:146)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.
buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.
buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.
SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
Launcher.java:289)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher
.java:229)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.
mainWithExitCode(Launcher.java:415)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.
java:356)


On Thursday, September 7, 2017 at 2:46:11 AM UTC-5, Colin Bester wrote:
>
> Is it possible to run akka-http-testkit using Specs2RouteTes via JUnit?
>
> I have tried in ScalaIDE using scala 2.11 and spec2 version 3.8.6, 
> akka-http versions 10.0.5 
>
>
> import org.specs2.mutable.SpecificationWithJUnit
>
> import akka.http.scaladsl.testkit.Specs2RouteTest
>
> class TestSpec2Test extends SpecificationWithJUnit  
>   with Specs2RouteTest { 
>   implicit def actorRefFactory = system 
>   println("aaa") 
>   "The service" should { 
>     "a" in { 
>       1 should beEqualTo(1) 
>     } 
>   } 
> }
>
>
> When running as junit test there is no console output and junit tests are 
> not run with no show of errors.
>
>
> If I comment out 'Specs2RouteTest' and 'implicit def actorRef...' the code 
> runs as expected.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to