How to run JUnit 4 and JUnit 5 Tests Together using Maven

Опубликовано: 07 Октябрь 2024
на канале: EvilTester - Software Testing
3,418
34

It is possible to run both JUnit 4 and JUnit 5 tests at the same time, we have to remember to add the surefire plugin to our maven `pom.xml`

In this video we demonstrate:

how to add both JUnit 4 and JUnit 5 in the same project
running JUnit 4 tests from the command line
running JUnit 5 tests from the command line

This video is supported by a blog post where you will find links to the code:

https://eviltester.com/post/junit/usi...

---

Remember to subscribe to this YouTube channel.

You can support me on Patreon   / eviltester   (watch my videos ad free and receive extra content)

I blog at https://eviltester.com/blog

Learn more about my consultancy, books and online training at:

https://eviltester.com
https://compendiumdev.co.uk

Follow me on:

  / eviltester  
  / eviltester  
  / eviltester