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

Upgrade unit tests from JUnit 4 to JUnit 5 #91

Open
shekhargulati opened this issue May 21, 2017 · 1 comment
Open

Upgrade unit tests from JUnit 4 to JUnit 5 #91

shekhargulati opened this issue May 21, 2017 · 1 comment

Comments

@shekhargulati
Copy link
Owner

shekhargulati commented May 21, 2017

  1. Use dynamic tests
  2. Use Assertions.class
  3. Use Nestedclasses and display names
  4. JUnit 5 Parameterized tests
  5. Create separate test classes per functionality
@shekhargulati shekhargulati added this to the 0.4.0 Release milestone May 21, 2017
@shekhargulati shekhargulati modified the milestone: 0.4.0 Release Jun 16, 2017
@AhmadHoghooghi
Copy link

AhmadHoghooghi commented Mar 5, 2018

Limitations of using JUnit5 with current version of Gradle (4.7)
According to this link from JUnit5 user guide:

The results of any tests run via the JUnit Gradle plugin will not be included in the standard test report generated by Gradle.

Also, there are other limitations mentioned here in Gradle 4.7 user guide:

There’re some known limitations on JUnit 5, e.g. tests in static nested classes won’t be discovered and classes are still displayed by its name instead of @DisplayName. They’ll be fixed in future version of Gradle.

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

2 participants