Repository: incubator-beam Updated Branches: refs/heads/master 2fbc0ea3a -> d2ad0ed31
Enable RunnableOnService tests for the Direct Runner Explicitly remove beamTestPipelineOptions in examples. Otherwise, running the examples after a PipelineRunner with Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/113e2573 Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/113e2573 Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/113e2573 Branch: refs/heads/master Commit: 113e2573938d21040a89c02782404ccfb45fcdfd Parents: 9a3fe34 Author: Thomas Groh <[email protected]> Authored: Tue May 10 13:36:21 2016 -0700 Committer: Thomas Groh <[email protected]> Committed: Thu May 12 09:59:44 2016 -0700 ---------------------------------------------------------------------- examples/java/pom.xml | 11 +++++++++++ runners/direct-java/pom.xml | 19 +++++++++++++++++-- 2 files changed, 28 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/113e2573/examples/java/pom.xml ---------------------------------------------------------------------- diff --git a/examples/java/pom.xml b/examples/java/pom.xml index 3457f71..e50b94a 100644 --- a/examples/java/pom.xml +++ b/examples/java/pom.xml @@ -48,6 +48,17 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <systemPropertyVariables> + <beamTestPipelineOptions> + </beamTestPipelineOptions> + </systemPropertyVariables> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> </plugin> http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/113e2573/runners/direct-java/pom.xml ---------------------------------------------------------------------- diff --git a/runners/direct-java/pom.xml b/runners/direct-java/pom.xml index bec9b70..fb7ba47 100644 --- a/runners/direct-java/pom.xml +++ b/runners/direct-java/pom.xml @@ -81,11 +81,26 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <executions> - <!-- For now, disables integration tests from the SDK as the runner is not ready. --> <execution> <id>runnable-on-service-tests</id> + <phase>integration-test</phase> + <goals> + <goal>test</goal> + </goals> <configuration> - <skip>true</skip> + <groups>org.apache.beam.sdk.testing.RunnableOnService</groups> + <parallel>none</parallel> + <failIfNoTests>true</failIfNoTests> + <dependenciesToScan> + <dependency>org.apache.beam:java-sdk-all</dependency> + </dependenciesToScan> + <systemPropertyVariables> + <beamTestPipelineOptions> + [ + "--runner=org.apache.beam.runners.direct.InProcessPipelineRunner" + ] + </beamTestPipelineOptions> + </systemPropertyVariables> </configuration> </execution> </executions>
