This post was originally posted on Medium.
In this article, we will learn how to enable JUnit 5 in a newly created Spring
Boot project. We are goi...
For further actions, you may consider blocking this person and/or reporting abuse
great thanks, very simple configuration
spring-boot-starter-test >2.2.0 comes with Junit 5, so no need for this if you use the most recent version of Spring Boot (or of spring-boot-starter-web).
For my application using spring-boot version
2.1.9.RELEASEaddingmaven-surefire-pluginwas not needed. Also, thejunit-jupiter-apiandjunit-jupiter-enginedependencies have the managed version5.3.2already. But I could not figure this out that ifspring-boot-starter-testis using JUnit-4 then where does this managed version of JUnit-5 is coming from?