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

Migrate unit tests to JUnit5 ? #101

Open
rpelisse opened this issue Feb 2, 2018 · 0 comments
Open

Migrate unit tests to JUnit5 ? #101

rpelisse opened this issue Feb 2, 2018 · 0 comments
Assignees

Comments

@rpelisse
Copy link
Contributor

rpelisse commented Feb 2, 2018

Reading an article on JUnit5 made me realized that of plumbering in Bugclerk unit testing may be simplified by using some new feature of JUnit 5, such as:

  • assertAll, to reduce, for instance, the amount of code testing that the returned list of Candidates matches the expectation
  • assertThrows, to simplify test expecting throws
  • @RepeatedTest or @nested, to factorize Check tests that are often very prone to cut'n'paste (and a change some value) - this may allow to define a "test template" and then tweak depending on the scenario.
  • ParameterResolver may also be a nice way to adress the previous issue

http://junit.org/junit5/docs/current/user-guide/

@rpelisse rpelisse self-assigned this Feb 2, 2018
@rpelisse rpelisse changed the title Migrate unit test to JUnit5 Migrate unit tests to JUnit5 ? Feb 2, 2018
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

No branches or pull requests

1 participant