Chaoran, Tests annotated with @Category(NeedsRunner.class) are ignored when you run tests using maven because sdks/java/core/pom.xml is configured to do so. <excludedGroups> org.apache.beam.sdk.testing.NeedsRunner </excludedGroups>
But when you run it from IDE these tests are not ignored and these tests fail. HTH. Gaurav On Mon, Aug 15, 2016 at 8:10 PM, Chaoran Yu <[email protected]> wrote: > Hi folks, > > I have a question about setting up an IDE to develop for Beam. I use > IntelliJ but ran into the following issue: > All tests passed in command line by running Maven build. But when I > tried to run TextIOTest in IntelliJ for example, a whole bunch of tests > failed with the following error: > > java.lang.IllegalArgumentException: Cannot call #run(Pipeline) on an > instance of CrashingRunner. CrashingRunner should only be used as the > default to construct a Pipeline using TestPipeline, and cannot execute > Pipelines. Instead, specify a PipelineRunner by providing PipelineOptions > in the system property 'beamTestPipelineOptions'. > > Looks like Intellij is having configuration problems. Is anybody using > Intellij or Eclipse and is there anything I need to do to configure it? > > Thank you, > Chaoran >
