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

5619 Refactor unit tests with Parametrized class #5657

Merged
merged 9 commits into from
Mar 19, 2019

Conversation

rschlaefli
Copy link
Contributor

@rschlaefli rschlaefli commented Mar 16, 2019

As part of this PR, I refactored several unit tests that can benefit from parametrized testing (as described in #5619). Some of the larger diffs occur due to nesting unchanged code inside an enclosed class to allow for parametrized testing, as was already done in #5636. Only the code in *ParamTests classes has actually been changed.

I have also added junit-jupiter-params as a new test dependency, which would allow us to perform future parametrized testing based on JUnit 5 (as it seems that you have setup both systems in parallel).

Related Issues

Pull Request Checklist

  • Unit [tests][] completed
  • Integration [tests][]: None
  • Deployment requirements, [SQL updates][], [Solr updates][], etc.: None
  • [Documentation][docs] completed
  • Merged latest from "develop" [branch][] and resolved conflicts

@coveralls
Copy link

coveralls commented Mar 16, 2019

Coverage Status

Coverage remained the same at 17.532% when pulling 27ee40a on rschlaefli:5619-improve-testing into 9439313 on IQSS:develop.

@rschlaefli rschlaefli mentioned this pull request Mar 16, 2019
5 tasks
Copy link
Contributor

@landreev landreev left a comment

Choose a reason for hiding this comment

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

Looks good! - Much easier to read the code, yes.

@landreev landreev removed their assignment Mar 19, 2019
@kcondon kcondon merged commit bc9da40 into IQSS:develop Mar 19, 2019
@kcondon kcondon self-assigned this Mar 19, 2019
@djbrooke djbrooke added this to the 4.12 milestone Mar 20, 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

6 participants