ant and junit 5 – outputting test duration and failure to the log

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

October 2018
M T W T F S S
« Sep    
1234567
891011121314
15161718192021
22232425262728
293031  

Past Posts

Java/Java EE

JDBC

Other

Archive for category JUnit 5

ant and junit 5 – outputting test duration and failure to the log

July 28th, 2018 by Jeanne Boyarsky

In JUnit 5, you use the junitlauncher Ant task rather than the junit Ant task. Unfortunately, this isn’t a drop in replacement. In addition to needing a workaround to set system properties, you also need a workaround to write the test results to the console log. JUnit 4 With JUnit 4 and Ant, you got output […]

JUnit 5 – assertAll

February 25th, 2018 by Jeanne Boyarsky

I gave a half day JUnit 5 workshop at DevNexus last week. When I covered assertAll(), an interesting piece of code came up. In JUnit 5, there is an assertAll() which runs all of the assertions it contains so you can see all of them that failed at once.  This replaces the need for AssertJ’s SoftAssertions. […]

junit 5, gradle and containers

February 11th, 2018 by Jeanne Boyarsky

Up until recently, I’ve been using JUnit 5 with Eclipse and Maven. As I started using it with Gradle, I became frustrated that you couldn’t see the number of tests run when the tests succeeded. (Don’t worry; this is an easily solvable problem.) First JUnit 4 You can add code to have Groovy print the […]