Skip to content

Replace surefire with a more native approach #5376

@laeubi

Description

@laeubi

We currently use an extension of Maven Surefire Plugin, but this often leads to some brittle bugs because of the classlaoding is not optimized to be used inside OSGi:

Also there are some issues with we need to keep up with changes in that plugin as well:

Compared to that with modern JUnit, the benefits of surefire are not that big anymore and there are even native alternatives as well

Since a while we integrated even bnd-test framework that also controls the execution using native JUnit 5 inside an OSGi framework

One thing is that we support TestNG but I'm not aware of any bigger userbase for that:

While it seems good to reuse the maven "native" approach it more becomes a burden than a benefit and hinders further development. I therefore would suggest to simply drop / deprecate that part and streamline the process, either support our use-case with the bnd-testing or adopt what the junit-platform-maven-plugin does and directly integrate with the junit platform that is defacto standard for Eclipse test execution anyways. This would best fit into a new tycho-testing-plugin to also allow better naming of mojos e.g. the bnd-testing is not really related to sure-fire and the current "test" are more related to plugin-tests in PDE than regular JUnit tests (that usually execute without OSGi).

There is also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions