maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tibor Digana (Jira)" <j...@apache.org>
Subject [jira] [Commented] (SUREFIRE-1854) Support include/exclude junit test engine
Date Sat, 07 Nov 2020 12:53:00 GMT

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

Tibor Digana commented on SUREFIRE-1854:
----------------------------------------

[~adam11grafik]
I would be nice if you could contribute to the project.
I think [LauncherDiscoveryRequest|https://junit.org/junit5/docs/current/api/org.junit.platform.launcher/org/junit/platform/launcher/LauncherDiscoveryRequest.html]
should be used, the method getEngineFilters() should return the [EngineFilter|https://junit.org/junit5/docs/current/api/org.junit.platform.launcher/org/junit/platform/launcher/EngineFilter.html].
The Request can be built by the [builder|https://junit.org/junit5/docs/current/api/org.junit.platform.launcher/org/junit/platform/launcher/core/LauncherDiscoveryRequestBuilder.html]
and we use the builder in our code (see the provider class in previous comment).
So i think this can be implemented and a new configuration parameter should be exposed to
the POM.

> 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)

Mime
View raw message