Re: [PR] differenciate between errors and failures for junit launcher [ant]

marcphilipp (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.ant.devel
Message-ID <PR_kwDOATT2FM6ZlEkp-53920f36-b6aa-49c9-a859-8f86e3366362@gitbox.apache.org>
marcphilipp commented on PR #221:
URL: https://github.com/apache/ant/pull/221#issuecomment-2979280480

   > Hm, yeah, JUnit Platform indeed does not differentiate between failure and error anymore. I have no idea why, maybe @marcphilipp could shed some light on why this is not done anymore.
   > 
   > Gradle indeed does also not do this differentiation yet, but reports both cases as failure.
   
   Since both are signaled via exceptions, we decided to simplify things when we started work on JUnit 5 (or JUnit Lambda as it was called back in the day). If you want to differentiate "failures" from "errors", you can check whether the `Throwable` is an instance of `AssertionError`.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.