You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by me...@apache.org on 2017/11/16 20:34:22 UTC

[beam-site] branch mergebot updated (db3bfc5 -> b6bbb4b)

This is an automated email from the ASF dual-hosted git repository.

mergebot-role pushed a change to branch mergebot
in repository https://gitbox.apache.org/repos/asf/beam-site.git.


 discard db3bfc5  This closes #348
 discard 0973c77  Sort in alphabetical order
 discard 232c598  Add myself as a committer
     new d5e1fdc  Update testing docs to account for Python.
     new b6bbb4b  This closes #350

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (db3bfc5)
            \
             N -- N -- N   refs/heads/mergebot (b6bbb4b)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/_beam_team/team.md    |  6 ------
 src/contribute/testing.md | 26 +++++++++++++++++++++++---
 2 files changed, 23 insertions(+), 9 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@beam.apache.org" <co...@beam.apache.org>'].

[beam-site] 02/02: This closes #350

Posted by me...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mergebot-role pushed a commit to branch mergebot
in repository https://gitbox.apache.org/repos/asf/beam-site.git

commit b6bbb4bd5e9d6b463d502262f03c16dd61e815d2
Merge: ba3ff30 d5e1fdc
Author: Mergebot <me...@apache.org>
AuthorDate: Thu Nov 16 20:33:04 2017 +0000

    This closes #350

 src/contribute/testing.md | 26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@beam.apache.org" <co...@beam.apache.org>.

[beam-site] 01/02: Update testing docs to account for Python.

Posted by me...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mergebot-role pushed a commit to branch mergebot
in repository https://gitbox.apache.org/repos/asf/beam-site.git

commit d5e1fdc01eb485a39d9cba2f2b544e79b7d07faf
Author: Robert Bradshaw <ro...@gmail.com>
AuthorDate: Tue Nov 14 18:44:24 2017 -0800

    Update testing docs to account for Python.
---
 src/contribute/testing.md | 26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

diff --git a/src/contribute/testing.md b/src/contribute/testing.md
index 322591f..ed733f9 100644
--- a/src/contribute/testing.md
+++ b/src/contribute/testing.md
@@ -303,7 +303,21 @@ importance of testing, Beam has a robust set of unit tests, as well as testing
 coverage measurement tools, which protect the codebase from simple to moderate
 breakages. Beam Java unit tests are written in JUnit.
 
-#### How to run NeedsRunner tests
+#### How to run Python unit tests
+
+Python tests are written using the standard Python unittest library.
+To run all unit tests, execute the following command in the ``sdks/python``
+subdirectory
+
+```
+python setup.py test [-s apache_beam.package.module.TestClass.test_method]
+```
+
+We also provide a [tox](https://tox.readthedocs.io/en/latest/) configuration
+in that same directory to run all the tests, including lint, cleanly in all
+desired configurations.
+
+#### How to run Java NeedsRunner tests
 
 NeedsRunner is a category of tests that require a Beam runner. A subset of these
 tests cannot be executed while building their corresponding modules because all
@@ -453,7 +467,13 @@ PAssert.that(pCollection).containsInAnyOrder(WHATEVER);
 ```
 
 ```py
-# Unsupported in Beam's Python SDK.
+# The suggested pattern of using pipelines as targets of with statements
+# eliminates the possibility for this kind of error or a framework
+# to catch it.
+
+with beam.Pipeline(...) as p:
+    [...arbitrary construction...]
+    # p.run() is automatically called on successfully exiting the context
 ```
 
 The `PAssert` at the end of this test method will not be executed, since
@@ -490,7 +510,7 @@ public void testReadingFailsTableDoesNotExist() throws Exception {
 ```
 
 ```py
-# Unsupported in Beam's Python SDK.
+# Unneeded in Beam's Python SDK.
 ```  
 
 The application of the `read` transform throws an exception, which is then

-- 
To stop receiving notification emails like this one, please contact
"commits@beam.apache.org" <co...@beam.apache.org>.