On Fri, Sep 10, 2021 at 6:18 PM Tibor Digana <tibordig...@apache.org> wrote:

> We have to dig into Junit 5. Surefire is a streamer of classes across the
> forks which is our load balancer. Therefore each class is running
> separately, pre and post fixtures. If the Junit 5 used Java Streamer
> including dome kind of control of fixtures then web would have this issue.
>

I totally agree. To me JUnit 5 looks overly complicated. Everything can be
customized, but the overall result is that even the simple things are hard
or impossible. I've looked at various ways to change the TestPlan, but the
only way I could think of to support streaming test classes is to have some
sort of streaming TestEngine in between. I'll file a feature request at
JUnit for support for this.

For now, I think the LauncherSession is the best way to at least provide
some hooks for pre and post fixtures. It shouldn't be too hard to get this
in the current code base with backwards compatibility for JUnit Platform
1.7 and older. I'll see if I can create a pull request for this somewhere
next week.

Best regards,
Emond

Reply via email to