You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Marc Philipp (JIRA)" <ji...@apache.org> on 2017/02/22 19:48:44 UTC
[jira] [Created] (SUREFIRE-1337) Add support for additional JUnit
Platform selectors and filters
Marc Philipp created SUREFIRE-1337:
--------------------------------------
Summary: Add support for additional JUnit Platform selectors and filters
Key: SUREFIRE-1337
URL: https://issues.apache.org/jira/browse/SUREFIRE-1337
Project: Maven Surefire
Issue Type: New Feature
Reporter: Marc Philipp
The JUnit Platform provider currently supports includeTags and excludeTags as synonyms for groups and excludeGroups. The JUnit platform supports additional filters, e.g. for engines and packages. Moreover, it supports selectors for URIs, local files, local directories, packages, classes, methods, and classpath resources.
It would be great if we could add support for these selectors and filters to the provider via custom configuration properties, e.g. like this:
{code:xml}
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<properties>
<selector>
<packages>
<package>com.acme.foo</package>
<package>com.acme.bar</package>
</packages>
</selectors>
<filters>
<tags>
<include>foo, bar</include>
<exclude>acceptance, integration</exclude>
</tags>
</filters>
</properties>
</configuration>
<dependencies>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-surefire-provider</artifactId>
<version>${junit.platform.version}</version>
</dependency>
</dependencies>
</plugin>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)