[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JUnit5, was: testcontainers

Thanks for the information!

Part of camel already uses this version ( and Zoran is looking into updating the remaining parts in


Am 17.06.2018 um 00:29 schrieb David Karlsen:
It is released now!

Den ons. 23. mai 2018 kl. 10:32 skrev Zoran Regvart <zoran@xxxxxxxxxxx>:

Hi David,
yes we can wait for that and the Surefire/Failsafe release that
includes it. I think we can also add
org.junit.platform:junit-platform-surefire-provider:1.2.0 dependency
to the existing Surefire/Failsafe plugin configurations.

As far as I understand that issue is tracking the incorporation of the
existing codebase from JUnit5 into Surefire.


On Wed, May 23, 2018 at 10:15 AM, David Karlsen <davidkarlsen@xxxxxxxxx>
Would you have to await for to be merged to get
surefire support?

Den ons. 23. mai 2018 kl. 10:08 skrev Zoran Regvart <zoran@xxxxxxxxxxx>:

on the testcontainers thread I mentioned that we can switch to JUnit5.
I've attended a talk by Sam Brannen at the local JUG. I think it was a
variant of the talk[1] he gave at SpringOne 2017.

The key takeaway for me was that JUnit5 is forward and backward
compatible, so you can run the same tests written with JUnit4
annotations on JUnit5, but you can also run JUnit5 tests on JUnit4, if
for some reason that would make sense in a particular case.

What I understood is that we could upgrade to JUnit5 by simply
upgrading the surefire/failsafe Maven plugins and adding the
junit-vintage-engine dependency but only to a module that has mixed
JUnit4 and JUnit5 tests[2]. The only issue is limited @Rule support.

Now on to the benefits, I think it makes much sense to move over to
JUnit5 for the conditional test execution[3], better categorization of
tests via tags[4] and the much better extension model[5].

I propose that we schedule this for the one release after the pending
one (so in 2.23), and that we add camel-test-jupiter component that
would help developers write nicer tests for their integrations with
support for dependency injection for example[6].


Zoran Regvart

David J. M. Karlsen -

Zoran Regvart