Migrate tests to JUnit5#290
Migrate tests to JUnit5#290MarkEWaite merged 1 commit intojenkinsci:masterfrom strangelookingnerd:migrate_to_junit5
Conversation
|
I was surprised to see that test coverage decreased with this change as reported by the "Indirect changes" page of https://ci.jenkins.io/job/Plugins/job/github-oauth-plugin/job/PR-290/1/coverage/ . The GithubAuthenticationToken class reduced its statement coverage and its branch coverage. Is there a compelling reason that we can't retain comparable coverage with JUnit 5 as we had with JUnit 4? |
I double checked my changes and found two additional assertions that were checking the contract of
Edit: Ignore this... |
|
I gave it another go and found the culprit to be in |
* Migrate annotations and imports * Migrate assertions * Remove public visibility for test classes and methods * Minor code cleanup
This PR aims to migrate all tests to JUnit5. Changes include:
I am well aware that this is a quite large changeset however I hope that there is still interest in this PR and it will be reviewed.
If there are any questions, please do not hesitate to ping me.