[ 
https://issues.apache.org/jira/browse/BEAM-4706?focusedWorklogId=118744&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-118744
 ]

ASF GitHub Bot logged work on BEAM-4706:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 03/Jul/18 15:12
            Start Date: 03/Jul/18 15:12
    Worklog Time Spent: 10m 
      Work Description: lgajowy closed pull request #5877: [BEAM-4706] 
BigQueryTornadoesIT cannot be run using integrationTest and performanceTest 
tasks
URL: https://github.com/apache/beam/pull/5877
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/examples/java/build.gradle b/examples/java/build.gradle
index d3fc2373c00..f540bef0813 100644
--- a/examples/java/build.gradle
+++ b/examples/java/build.gradle
@@ -20,6 +20,8 @@ import groovy.json.JsonOutput
 
 apply plugin: org.apache.beam.gradle.BeamModulePlugin
 applyJavaNature()
+provideIntegrationTestingDependencies()
+enableJavaPerformanceTesting()
 
 description = "Apache Beam :: Examples :: Java"
 ext.summary = """Apache Beam SDK provides a simple, Java-based
diff --git 
a/examples/java/src/test/java/org/apache/beam/examples/cookbook/BigQueryTornadoesIT.java
 
b/examples/java/src/test/java/org/apache/beam/examples/cookbook/BigQueryTornadoesIT.java
index 461787ff721..b20c796ce88 100644
--- 
a/examples/java/src/test/java/org/apache/beam/examples/cookbook/BigQueryTornadoesIT.java
+++ 
b/examples/java/src/test/java/org/apache/beam/examples/cookbook/BigQueryTornadoesIT.java
@@ -28,7 +28,25 @@
 import org.junit.runner.RunWith;
 import org.junit.runners.JUnit4;
 
-/** End-to-end tests of BigQueryTornadoes. */
+/**
+ * An end-to-end test for {@link 
org.apache.beam.examples.cookbook.BigQueryTornadoes}.
+ *
+ * <p>This test reads the public samples of weather data from BigQuery, counts 
the number of
+ * tornadoes that occur in each month, and writes the results to BigQuery. It 
requires
+ * "BigQueryTornadoesIT" BigQuery dataset to be created before running.
+ *
+ * <p>Running instructions:
+ *
+ * <pre>
+ *  ./gradlew integrationTest -p examples/java/ 
-DintegrationTestPipelineOptions='[
+ *  "--tempLocation=gs://your-location/"]'
+ *  --tests org.apache.beam.examples.cookbook.BigQueryTornadoesIT
+ *  -DintegrationTestRunner=direct
+ * </pre>
+ *
+ * <p>Check {@link org.apache.beam.examples.cookbook.BigQueryTornadoes} form 
more configuration
+ * options via PipelineOptions.
+ */
 @RunWith(JUnit4.class)
 public class BigQueryTornadoesIT {
 
@@ -40,7 +58,7 @@
 
   @BeforeClass
   public static void setUp() {
-    PipelineOptionsFactory.register(TestPipelineOptions.class);
+    PipelineOptionsFactory.register(BigQueryTornadoesITOptions.class);
   }
 
   @Test


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 118744)
    Time Spent: 1h 50m  (was: 1h 40m)

> BigQueryTornadoesIT cannot be run using integrationTest and performanceTest 
> tasks
> ---------------------------------------------------------------------------------
>
>                 Key: BEAM-4706
>                 URL: https://issues.apache.org/jira/browse/BEAM-4706
>             Project: Beam
>          Issue Type: Bug
>          Components: testing
>            Reporter: Łukasz Gajowy
>            Assignee: Kasia Kucharczyk
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> It seems that we cannot run this test using tasks from BuildModulePlugin 
> designed to run such tests. Those are not included in build.gradle of 
> examples module. There's a possibility that some other tests are not able to 
> run due to this reason (this also has to be checked).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to