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

5634 new unit tests #5643

Merged
merged 6 commits into from
Mar 20, 2019
Merged

5634 new unit tests #5643

merged 6 commits into from
Mar 20, 2019

Conversation

nikzaugg
Copy link
Contributor

This pull request contributes three new test classes with unit tests (as mentioned in #5634 ).

Related Issues

Pull Request Checklist

@coveralls
Copy link

coveralls commented Mar 14, 2019

Coverage Status

Coverage increased (+0.07%) to 17.604% when pulling 31f0d38 on nikzaugg:5634-new-unit-tests into 9439313 on IQSS:develop.

Copy link
Contributor

@matthew-a-dunlap matthew-a-dunlap left a comment

Choose a reason for hiding this comment

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

Overall good, one minor request! Thanks for adding coverage!

import org.junit.runner.RunWith;

@RunWith(Theories.class)
public class MyDataUtilTest {
Copy link
Contributor

Choose a reason for hiding this comment

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

I hadn't seen JUnit theories before. They look really powerful and I like how you've used them here. They are experimental though and it looks like JUnit 5 is steering away from this sort of functionality junit-team/junit5#1422 (comment)

I'm ok with accepting this test. Can you leave a comment in the code about this experimentally for us to refer to when we decide to migrate tests? Also maybe a line about Theories in general?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hi @matthew-a-dunlap

Thanks for the review. I added a comment about JUnit Theories in a new commit.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could this be replaced with the upstream-supported Dynamic Testing in JUnit5?

Promising blog article on that: https://blog.codefx.org/libraries/junit-5-dynamic-tests/

Copy link
Contributor

Choose a reason for hiding this comment

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

@poikilotherm This does look really useful! I don't think I'll ask for it in this PR but if we want more dynamic tests this is the way to go.

@djbrooke
Copy link
Contributor

Hi @nikzaugg - is this ready for Code Review?

@nikzaugg
Copy link
Contributor Author

Hi @djbrooke
Yes, it is ready for review. I added the requested changes with my last commit.

@pdurbin
Copy link
Member

pdurbin commented Mar 20, 2019

Should a new issue be created since #5634 is already closed?

@matthew-a-dunlap
Copy link
Contributor

#5643 is good and ready for QA

@djbrooke
Copy link
Contributor

@pdurbin I'm OK with this moving as a PR. Thanks @matthew-a-dunlap for the code review!

@kcondon kcondon merged commit 7f5e415 into IQSS:develop Mar 20, 2019
@kcondon kcondon self-assigned this Mar 20, 2019
@pdurbin pdurbin added this to the 4.12 milestone Mar 29, 2019
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.

None yet

7 participants