Menu

#222 Make dbUnit compatible with JUnit 5

(future)
open
nobody
None
5
2020-02-24
2019-02-28
Jeff Jensen
No

It works with the JUnit 5 runners but requires JUnit 4 on the classpath for those classes during execution.

Also see https://sourceforge.net/p/dbunit/bugs/164/

Discussion

  • Manfred

    Manfred - 2020-02-15

    Will this JUnit 4 version be always necessary or will there be a version of dbunit which no longer depends on JUnit 4. Currently all our tests have been migrated to JUnit 5 and I prefer not having JUnit4 dependencies on the classpath.

     
    • Jeff Jensen

      Jeff Jensen - 2020-02-15

      The goal is to eliminate JUnit 4 deps. I'm in the same situation and have the same motivation.

      No one is working on this at the moment tho, so if you or other team member have some time to analyze/find and note needed changes and/or make a branch starting the changes, it would help accomplish this earlier.

       
      • Manfred

        Manfred - 2020-02-16

        Thanks for the reply.
        For the time being I've removed all our Junit4 dependencies from the project and I added the maven-enforcer-plugin with the restrict-imports-enforcer-rule dependency which allows to check during buildtime that no Junit4 packages have been imported in the Test classes.

         

        Last edit: Manfred 2020-02-17
  • Jeff Jensen

    Jeff Jensen - 2020-02-24
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,3 @@
     It works with the JUnit 5 runners but requires JUnit 4 on the classpath for those classes during execution.
    +
    +Also see https://sourceforge.net/p/dbunit/bugs/164/
    
     

Log in to post a comment.