I'm assuming your trying to run the @NeedsRunner/@RunnableOnService tests
found in sdks/java/core and runners/core-java, then you want to invoke:
mvn integration-test -pl runners/direct-java -am -T 1C

After the regular tests run, you should see another test block executing
those tests found in the other modules as such:
[INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (runnable-on-service-tests) @
beam-runners-direct-java ---

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.beam.sdk.testing.PAssertTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.652 sec
- in org.apache.beam.sdk.testing.PAssertTest
Running org.apache.beam.sdk.testing.TestStreamTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.786 sec -
in org.apache.beam.sdk.testing.TestStreamTest


On Fri, Oct 7, 2016 at 11:23 AM, Jesse Anderson <[email protected]>
wrote:

> I've been trying to figure out the correct command to run the
> beamUseDummyRunner tests from the command line.
>
> I tried:
> mvn -DbeamUseDummyRunner=false -pl runners/direct-java,sdks/java/core/
> test
>
> But that still doesn't put the DirectRunner on the classpath:
> java.lang.IllegalArgumentException: No Runner was specified and the
> DirectRunner was not found on the classpath.
>
> Does anyone know what the correct command is?
>
> Thanks,
>
> Jesse
>

Reply via email to