-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BEAM-13471] [Playground] Tag existing unit-tests #16325
Changes from all commits
833d251
54f5d4f
a6b77a1
12c8f5f
ffcf94f
1c6c3f6
d9f166e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -17,6 +17,15 @@ | |||||||
*/ | ||||||||
package org.apache.beam.examples.complete.game; | ||||||||
|
||||||||
// beam-playground: | ||||||||
// name: GameStatsTest | ||||||||
// description: Unit-test for the GameStats example. | ||||||||
// multifile: false | ||||||||
// pipeline_options: | ||||||||
// categories: | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||||||||
// - Testing | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
// - Filtering | ||||||||
|
||||||||
import java.io.Serializable; | ||||||||
import java.util.Arrays; | ||||||||
import java.util.List; | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -15,6 +15,14 @@ | |||||||
|
||||||||
package beam_test | ||||||||
|
||||||||
// beam-playground: | ||||||||
// name: PartitionTest | ||||||||
// description: Unit-test for the Partition example. | ||||||||
// multifile: false | ||||||||
// pipeline_options: | ||||||||
// categories: | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||||||||
// - Core Transforms | ||||||||
|
||||||||
import ( | ||||||||
"testing" | ||||||||
|
||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -15,6 +15,15 @@ | |||||||
|
||||||||
package filter_test | ||||||||
|
||||||||
// beam-playground: | ||||||||
// name: DistinctTest | ||||||||
// description: Unit-test for the Distinct example. | ||||||||
// multifile: false | ||||||||
// pipeline_options: | ||||||||
// categories: | ||||||||
// - Filtering | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
// - Core Transforms | ||||||||
|
||||||||
import ( | ||||||||
"testing" | ||||||||
|
||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -19,6 +19,15 @@ | |||||||
|
||||||||
# pytype: skip-file | ||||||||
|
||||||||
# beam-playground: | ||||||||
# name: StreamingWordCountITTest | ||||||||
# description: Unit-test for the streaming WordCount example. | ||||||||
# multifile: false | ||||||||
# pipeline_options: | ||||||||
# categories: | ||||||||
# - Streaming | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
# - IO | ||||||||
|
||||||||
import logging | ||||||||
import unittest | ||||||||
import uuid | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -19,6 +19,15 @@ | |||||||
|
||||||||
# pytype: skip-file | ||||||||
|
||||||||
# beam-playground: | ||||||||
# name: WordCountMinimalTest | ||||||||
# description: Unit-test for the minimal WordCount example. | ||||||||
# multifile: false | ||||||||
# pipeline_options: | ||||||||
# categories: | ||||||||
# - IO | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
# - Combiners | ||||||||
|
||||||||
import collections | ||||||||
import logging | ||||||||
import re | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -20,6 +20,15 @@ | |||||||
|
||||||||
# pytype: skip-file | ||||||||
|
||||||||
# beam-playground: | ||||||||
# name: WordCountTest | ||||||||
# description: Unit-test for the WordCount example. | ||||||||
# multifile: false | ||||||||
# pipeline_options: | ||||||||
# categories: | ||||||||
# - IO | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
# - Combiners | ||||||||
|
||||||||
import collections | ||||||||
import logging | ||||||||
import re | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -17,6 +17,14 @@ | |||||
|
||||||
# pytype: skip-file | ||||||
|
||||||
# beam-playground: | ||||||
# name: MetricTest | ||||||
# description: Unit-test for the Metric example. | ||||||
# multifile: false | ||||||
# pipeline_options: | ||||||
# categories: | ||||||
# - Metrics | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||||||
|
||||||
import unittest | ||||||
|
||||||
import hamcrest as hc | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,15 @@ | |
|
||
# pytype: skip-file | ||
|
||
# beam-playground: | ||
# name: SQLTest | ||
# description: Unit-test for the transforms that use | ||
# the SQL Expansion service. | ||
# multifile: false | ||
# pipeline_options: | ||
# categories: | ||
# - Beam SQL | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. have you tested that these examples run well on the playground? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi Pablo, yes, all these examples have been tested and completed without errors |
||
|
||
import logging | ||
import typing | ||
import unittest | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.