You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "DamnedElric (via GitHub)" <gi...@apache.org> on 2024/02/26 23:23:44 UTC

[PR] Update the tests to JUnit 5 [commons-cli]

DamnedElric opened a new pull request, #238:
URL: https://github.com/apache/commons-cli/pull/238

   This removes references to JUnit 4 test constructions and switches all tests to JUnit 5.
   
   Unfortunately, JUnit 5's assertions have swapped the optional "message" argument from first to last, this makes the diff bigger than it would have otherwise been.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update the tests to JUnit 5 [commons-cli]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #238:
URL: https://github.com/apache/commons-cli/pull/238#issuecomment-1968972973

   TY @DamnedElric !


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update the tests to JUnit 5 [commons-cli]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #238:
URL: https://github.com/apache/commons-cli/pull/238#issuecomment-1967713194

   > @garydgregory Made some changes to fix the checkstyle errors, and included all other recent changes to the master branch. Should be green now :)
   > 
   > Edit: technically speaking, the junit-vintage-engine dependency can now be replaced by junit-jupiter-engine, this would prevent any new old-style tests from being introduced. Not sure if we want to go that way?
   
   @DamnedElric 
   Yes, let's please migrate _away_ from the vintage layer. I want to avoid anything non-version 5 from sneaking back in.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update the tests to JUnit 5 [commons-cli]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #238:
URL: https://github.com/apache/commons-cli/pull/238


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update the tests to JUnit 5 [commons-cli]

Posted by "DamnedElric (via GitHub)" <gi...@apache.org>.
DamnedElric commented on PR #238:
URL: https://github.com/apache/commons-cli/pull/238#issuecomment-1966143845

   > Run `mvn` by itself to run the default Maven goal and catch all build errors
   
   Ah my bad, I ran the test and install targets, but I didn't notice that there was a default target which included checkstyle. Will patch that tonight, and include #237. 
   
   I might create a future MR which refactors some of the tests to use a more idiomatic JUnit 5 style where it improves readability.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update the tests to JUnit 5 [commons-cli]

Posted by "DamnedElric (via GitHub)" <gi...@apache.org>.
DamnedElric commented on PR #238:
URL: https://github.com/apache/commons-cli/pull/238#issuecomment-1968584469

   > @DamnedElric Yes, let's please migrate _away_ from the vintage layer. I want to avoid anything non-version 5 from sneaking back in.
   
   @garydgregory Done :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update the tests to JUnit 5 [commons-cli]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #238:
URL: https://github.com/apache/commons-cli/pull/238#issuecomment-1965651340

   ## [Codecov](https://app.codecov.io/gh/apache/commons-cli/pull/238?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Project coverage is 91.95%. Comparing base [(`9f6b23b`)](https://app.codecov.io/gh/apache/commons-cli/commit/9f6b23b04d88fef2eaa67607753f3fc82375c52e?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`255cca4`)](https://app.codecov.io/gh/apache/commons-cli/pull/238?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   > Report is 22 commits behind head on master.
   
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@             Coverage Diff              @@
   ##             master     #238      +/-   ##
   ============================================
   + Coverage     91.90%   91.95%   +0.05%     
   - Complexity      575      593      +18     
   ============================================
     Files            22       22              
     Lines          1247     1268      +21     
     Branches        210      214       +4     
   ============================================
   + Hits           1146     1166      +20     
   + Misses           63       62       -1     
   - Partials         38       40       +2     
   ```
   
   
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/commons-cli/pull/238?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update the tests to JUnit 5 [commons-cli]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #238:
URL: https://github.com/apache/commons-cli/pull/238#issuecomment-1965652727

   Hello @DamnedElric 
   
   Thank you for your PR.
   Run `mvn` by itself to run the default Maven goal and catch all build errors.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update the tests to JUnit 5 [commons-cli]

Posted by "Claudenw (via GitHub)" <gi...@apache.org>.
Claudenw commented on PR #238:
URL: https://github.com/apache/commons-cli/pull/238#issuecomment-1965928143

   I like the idea and I know it is a big task.  I did similar work for the RAT project recently.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Update the tests to JUnit 5 [commons-cli]

Posted by "DamnedElric (via GitHub)" <gi...@apache.org>.
DamnedElric commented on PR #238:
URL: https://github.com/apache/commons-cli/pull/238#issuecomment-1967607641

   @garydgregory Made some changes to fix the checkstyle errors, and included all other recent changes to the master branch. Should be green now :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org