witty-crayon-22786
04/25/2017, 9:15 PMwide-energy-11069
04/25/2017, 9:15 PM@RunWith(classOf[JUnitRunner])
?witty-crayon-22786
04/25/2017, 9:16 PMwide-energy-11069
04/25/2017, 9:18 PM1) initializationError(HelloWorldSpec)
java.lang.ClassCastException: HelloWorldSpec cannot be cast to org.scalatest.Suite
at org.scalatest.junit.JUnitRunner.<init>(JUnitRunner.scala:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.CustomAnnotationBuilder$ScalaTestAnnotatedBuilder.runnerForClass(CustomAnnotationBuilder.java:49)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.AnnotatedClassRequest.getRunner(AnnotatedClassRequest.java:41)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.CompositeRequestRunner.runChild(CompositeRequestRunner.java:53)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConcurrentCompositeRequestRunner$1$1.run(ConcurrentCompositeRequestRunner.java:37)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConcurrentRunnerScheduler.finished(ConcurrentRunnerScheduler.java:91)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConcurrentCompositeRequestRunner$1.evaluate(ConcurrentCompositeRequestRunner.java:46)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConsoleRunnerImpl.runLegacy(ConsoleRunnerImpl.java:542)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConsoleRunnerImpl.run(ConsoleRunnerImpl.java:458)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConsoleRunnerImpl.main(ConsoleRunnerImpl.java:846)
at org.pantsbuild.tools.junit.ConsoleRunner.main(ConsoleRunner.java:12)
wide-energy-11069
04/25/2017, 9:18 PMpurple-oil-45048
04/26/2017, 12:16 AMxx extends SpecificationWithJUnit
or your annotation mentioned abovewide-energy-11069
04/26/2017, 12:26 AMpurple-oil-45048
04/26/2017, 12:28 AMfast-megabyte-33579
04/26/2017, 8:31 AMfast-megabyte-33579
04/26/2017, 8:32 AMwitty-crayon-22786
04/26/2017, 6:07 PMwitty-crayon-22786
04/26/2017, 6:08 PMwitty-crayon-22786
04/26/2017, 6:09 PMfast-megabyte-33579
04/26/2017, 8:48 PMwitty-crayon-22786
04/26/2017, 10:30 PMwitty-crayon-22786
04/26/2017, 10:30 PMwitty-crayon-22786
04/26/2017, 10:31 PMwitty-crayon-22786
04/26/2017, 10:31 PMwitty-crayon-22786
04/27/2017, 1:08 AMhigh-advantage-47550
04/27/2017, 1:54 AMhigh-advantage-47550
04/27/2017, 1:54 AM//::
— is there an alternative to that? and/or any general optimizations or best practices / fixes?high-advantage-47550
04/27/2017, 1:58 AMwitty-crayon-22786
04/27/2017, 2:04 AM//::
... yes, definitely. load the thing you are editing, and its tests... ie, not the "whole repo"witty-crayon-22786
04/27/2017, 2:05 AMwitty-crayon-22786
04/27/2017, 2:07 AM./pants idea-plugin {src,tests}/scala/some/project::
is commonhigh-advantage-47550
04/27/2017, 2:12 AMhigh-advantage-47550
04/27/2017, 2:12 AMsynchronize
each time?high-advantage-47550
04/27/2017, 2:37 AMfast-megabyte-33579
04/27/2017, 6:58 AM./pants export
a known project and its tests, one //::
that I think we'll gradually phase out in favour of a mix of ./pants changed
piped to exportplain-sundown-25537
04/27/2017, 7:46 AM