Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Specs2 output when run in IntelliJ IDEA: "Test framework quit unexpectedly" (see http://stackoverflow.com/questions/34159857/specs2-how-to-test-a-class-with-more-than-one-injected-dependency)
Testing started at 22:28 ...
services.ReportServiceSpec$
java.lang.ClassNotFoundException: services.ReportServiceSpec$
STACKTRACE
java.net.URLClassLoader.findClass(URLClassLoader.java:381)
java.lang.ClassLoader.loadClass(ClassLoader.java:424)
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
java.lang.ClassLoader.loadClass(ClassLoader.java:357)
org.specs2.reflect.Classes$$anonfun$loadClassEither$1.apply(Classes.scala:140)
org.specs2.reflect.Classes$$anonfun$loadClassEither$1.apply(Classes.scala:140)
org.specs2.control.ActionT$$anonfun$safe$1.apply(ActionT.scala:89)
org.specs2.control.ActionT$$anonfun$reader$1$$anonfun$apply$6.apply(ActionT.scala:80)
org.specs2.control.Status$.safe(Status.scala:100)
org.specs2.control.StatusT$$anonfun$safe$1.apply(StatusT.scala:62)
org.specs2.control.StatusT$$anonfun$safe$1.apply(StatusT.scala:62)
scalaz.syntax.ToApplicativeOps$$anon$1.self$lzycompute(ApplicativeSyntax.scala:29)
scalaz.syntax.ToApplicativeOps$$anon$1.self(ApplicativeSyntax.scala:29)
scalaz.syntax.ToApplicativeOps$ApplicativeIdV$$anonfun$point$1.apply(ApplicativeSyntax.scala:33)
scalaz.WriterTApplicative$$anonfun$point$1.apply(WriterT.scala:268)
scalaz.WriterTApplicative$$anonfun$point$1.apply(WriterT.scala:268)
scalaz.effect.IO$$anonfun$apply$19$$anonfun$apply$20.apply(IO.scala:136)
scalaz.effect.IO$$anonfun$apply$19$$anonfun$apply$20.apply(IO.scala:136)
scalaz.FreeFunctions$$anonfun$return_$1.apply(Free.scala:326)
scalaz.FreeFunctions$$anonfun$return_$1.apply(Free.scala:326)
scalaz.std.FunctionInstances$$anon$1$$anonfun$map$1.apply(Function.scala:56)
scalaz.Free$$anonfun$run$1.apply(Free.scala:172)
scalaz.Free$$anonfun$run$1.apply(Free.scala:172)
scalaz.Free.go2$1(Free.scala:119)
scalaz.Free.go(Free.scala:122)
scalaz.Free.run(Free.scala:172)
scalaz.effect.IO$class.unsafePerformIO(IO.scala:22)
scalaz.effect.IOFunctions$$anon$6.unsafePerformIO(IO.scala:227)
org.specs2.runner.Runner$.execute(Runner.scala:29)
org.specs2.runner.ClassRunner$class.run(ClassRunner.scala:43)
org.specs2.runner.ClassRunner$.run(ClassRunner.scala:84)
org.specs2.runner.ClassRunner$class.run(ClassRunner.scala:25)
org.specs2.runner.ClassRunner$.run(ClassRunner.scala:84)
org.specs2.runner.NotifierRunner.main(NotifierRunner.scala:12)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
org.jetbrains.plugins.scala.testingSupport.specs2.JavaSpecs2Runner.runWithNotifierRunner(JavaSpecs2Runner.java:101)
org.jetbrains.plugins.scala.testingSupport.specs2.JavaSpecs2Runner.runSpecs2_new(JavaSpecs2Runner.java:188)
org.jetbrains.plugins.scala.testingSupport.specs2.JavaSpecs2Runner.runSingleTest(JavaSpecs2Runner.java:201)
org.jetbrains.plugins.scala.testingSupport.specs2.JavaSpecs2Runner.main(JavaSpecs2Runner.java:84)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
This looks like a specs2 exception...
Please report it with the preceding stacktrace at http://github.com/etorreborre/specs2/issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment