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

Tibor Digana edited comment on SUREFIRE-1854 at 11/7/20, 12:52 PM:
-------------------------------------------------------------------

[~adam11grafik]
It 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.


was (Author: tibor17):
[~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)

Reply via email to