-
Notifications
You must be signed in to change notification settings - Fork 82
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
Migrating from JUnit 4/3 to JUnit 5 for testing #85
Comments
@krisstern I would like to work on this. is there any jira task created for this issue? |
Hi @baruKreddy! We are not currently using JIRA. You are welcome to start work on the issue. |
Thanks:) @krisstern |
@krisstern I can see https://github.com/jenkinsci/junit-plugin/blob/master/pom.xml the version is managed in parent still. So where should we go for a version change. |
The issue now is split into two parts:
|
Hi, @krisstern ,I would like to work on Migrating from JUnit 4 to JUnit 5 for Integration testing issue . Please help,if possibe,Thanks. |
There is this book called "Junit in Action", 3rd edition that may be useful for this task. You can find free PDF copies on the internet or pay for a copy. They do have a chapter dealing migrating from Junit 4 to Junit 5 in particular. (I have access to it via my O'Reilly subscription.) I think the book would be a good starter to begin on a PR to complete this issue. |
Thanks, @krisstern I downloaded that book . (I will read it) |
HI @Urjaswi-2655 If you are looking for relevant Udemy courses there is a free one https://www.udemy.com/course/junit-quick-start-for-beginners-java-unit-testing/. But this does not dive deep into migration from Junit 4 to Junit 5. So naturally you should fall back on the book preferably. |
Thanks @krisstern I will cover it now |
@Urjaswi-2655 How is this going? |
Hi @krisstern I would like to work on this issue. can I start work on this? |
Hi @shamlymhd Sure, I don't think anyone else is working on the issue at the moment |
Is anyone working on this issue? |
No, don't think so |
I see that the migration to Junit 5 is already done. Whats pending on this issue? |
It's not 100% completed yet, only partially done. |
All test cases are not passing ? Is it? Because pom.xml shows the upgrade to latest junit 5 version. Running tests now |
@krisstern Getting following error when I build the project: Am I missing something here |
I think it is the codebase that needs upgrading, as supposedly the "integration" tests have not been updated to JUnit 5 according to some comments of a previoius contributor. The tests are all passing. I can build it locally with no issues. |
What feature do you want to see added?
Currently the codebase uses JUnit 4 for testing. Would be ideal if the tests could be updated to use JUnit 5 for this plugin, in order to harness the latest features from Java 8 or later, such as the lambda functions, rendering the tests more powerful and easier to maintain.
More info about the major differences and benefits of migrating from JUnit 4 to JUnit 5 can be found for example in this blog post from Oracle.
Upstream changes
No response
The text was updated successfully, but these errors were encountered: