Skip to content
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-972] Add unit tests to Gearpump runner #2302

Merged
merged 1 commit into from
Mar 30, 2017

Conversation

huafengw
Copy link
Contributor

@huafengw huafengw commented Mar 23, 2017

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify. (Even better, enable
    Travis-CI on your fork and ensure the whole test matrix passes).
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

@huafengw
Copy link
Contributor Author

R: @kennknowles
Hi, this is Huafeng from Gearpump team, I'm adding some unit tests to gearpump runner. Please help to review this pr.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling eb0d333 on huafengw:addGPUT into ** on apache:gearpump-runner**.

@asfbot
Copy link

asfbot commented Mar 23, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/8711/
--none--

@kennknowles
Copy link
Member

Hi Huafeng! Thanks for contributing. I am on a little vacation but I I will take a look on Monday.

@huafengw
Copy link
Contributor Author

@kennknowles Thanks, any comment?

Copy link
Member

@kennknowles kennknowles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My main comment is that this PR actually does many things:

  • Adds some unit tests
  • Fixes up the pom.xml
  • Fills in the README.md

So that's all great :-)

Next time, if you remember to make many little commits that might be nice. Not too important right now. I'll merge this.

Other than this, I thought we set it up for Gearpump's integration tests ran on every precommit while it was on a feature branch (CC: @manuzhang). Did it take too long and time out? It doesn't look like it ran this time.

I'll merge this either way.


assertNull(deserializedOptions.getEmbeddedCluster());
assertNull(deserializedOptions.getSerializers());
assertEquals(10, deserializedOptions.getParallelism());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Beam, our style is to use assertThat(deserializedOptions.getParallelism(), equalTo(10)).

@asfgit asfgit merged commit eb0d333 into apache:gearpump-runner Mar 30, 2017
asfgit pushed a commit that referenced this pull request Mar 30, 2017
@huafengw
Copy link
Contributor Author

Thanks Kenn, I'll keep your advice in mind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants