Open amardeep2006 opened 10 months ago
Hi @amardeep2006,
Right now the module camunda-bpm-spring-boot-starter-test
you mentioned relies on JUnit 4 so you can't directly use it with JUnit 5 tests. JUnit 5 can run JUnit 4 tests with junit-vintage-engine
but you can't combine 4 with 5, so you can't extend from AbstractProcessEngineRuleTest
.
I think the feature request to support JUnit 5 could make sense but we probably won't have time to work on this in the next couple months. Would you be interested in implementing a JUnit 5 compatible test module for Spring? If needed, we could give you some pointers.
-Daniel
Thanks for clarification Daniel. Please share pointers . Also share if Camunda implements it then will you prefer separate Junit 5 test starter OR upgrade existing starter?
User Story (Required on creation)
I should be able to use Junit5 with camunda-bpm-spring-boot-starter-test
Functional Requirements (Required before implementation)
I am using camunda-bpm-spring-boot-starter-test in my Springboot 3.x.x based Camunda project. The test cases work on with junit-vintage-engine. I want to upgrade to Junit 5.
Technical Requirements (Required before implementation)
I have tried following exclusion to make sure Junit4 is removed from class path but I get java.lang.NoClassDefFoundError: org/junit/rules/TestWatcher
Please change the category if this is a Bug or I am making some silly mistake in my test class.
Logs
Here is test case I am trying to run
Limitations of Scope
Hints
Links
Breakdown
Dev2QA handover