You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JUnit 5 does provide lots of extension points, but as of release 5.0.1, it is not possible to intercept a test method invocation, you can only decorate with before or after callbacks.
A Pax Exam driver must be able to intercept a test class or method execution and delegate it to a proxy driver running within the test container. I've raised a JUnit issue for that: junit-team/junit5#1145
Until that is fixed, we will have to use our own test engine. Unfortunately, all potential places where I'd like to hook into junit-jupiter-engine are package private or final, so it is not possible to use this library as a dependency and override some methods.
For now, pax-exam-junit5-engine is based on the source code of org.junit.jupiter:junit-jupiter-engine:5.0.1, with some modifications mainly in HierarchicalTestEngine and HierarchicalTestExecutor. renamed to PaxExamTestEngine and PaxExamTestExecutor.
This is just a first step, for keeping in sync with JUnit 5, we'd better use the Maven Dependency Plugin to download the original sources as part of our build process and only include added or modified source files in our source tree.
Harald Wellmann created PAXEXAM-792
Goals
pax-exam-junit5
.Fixed in: 5.0.0
Votes: 1, Watches: 1
The text was updated successfully, but these errors were encountered: