You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Adam (Jira)" <ji...@apache.org> on 2020/11/05 09:10:00 UTC

[jira] [Commented] (SUREFIRE-1854) Support include/exclude junit test engine

    [ https://issues.apache.org/jira/browse/SUREFIRE-1854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17226590#comment-17226590 ] 

Adam commented on SUREFIRE-1854:
--------------------------------

Ok, so I will describe this in another way.

I created my custom junit5 test engine but when I am executing test in maven the junit platform run both engines: junit-jupiter and my custom engine. There is option to include/exclude engine via console launcher options: [https://junit.org/junit5/docs/current/user-guide/#running-tests-console-launcher-options] but this is still not supported by maven-surefire-plugin as I know.

Gradle support include/exclude engine but I have to use Maven.

I found some workaround by using maven-antrun-plugin instead maven-surefire-plugin for using cucumber engine:

https://github.com/cucumber/cucumber-jvm/tree/main/junit-platform-engine

It looks that not only I could be a potencial customer of this feature :)

Execution in maven surefire plugin does not support including and excluding engines. Groups and tags in junit are not related with including and excluding engines (this is something different).

> Support include/exclude junit test engine
> -----------------------------------------
>
>                 Key: SUREFIRE-1854
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1854
>             Project: Maven Surefire
>          Issue Type: New Feature
>          Components: JUnit 5.x support, Maven Surefire Plugin
>    Affects Versions: 2.22.2
>            Reporter: Adam
>            Priority: Major
>
> It could be very important for my project to support include/exclude junit test engine by Maven Surefire Plugin.
> Junit Console Launcher have existing support for this:
> [https://junit.org/junit5/docs/current/user-guide/#running-tests-console-launcher-options]
> Similar solution exists for Gradle:
> https://junit.org/junit5/docs/current/user-guide/#running-tests-build-gradle



--
This message was sent by Atlassian Jira
(v8.3.4#803005)