tycho-test:junit-platform
Full name:
org.eclipse.tycho:tycho-test-plugin:6.0.0-SNAPSHOT:junit-platform
Description:
Execute tests using the JUnit Platform inside an OSGi Framework using the tests-console-launcher
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
integration-test
.
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<applicationStartLevel> |
int |
- |
The initial start level used for bundles and the OSGi framework. Default: 4 |
<config> |
Map<String,String> |
- |
No description. |
<details> |
String |
- |
Tree printing mode for test output. Valid values: none, summary, flat, tree, verbose. User Property: details |
<detailsTheme> |
String |
- |
ASCII art theme for tree printing. Valid values: ascii, unicode. User Property: details-theme |
<disableBanner> |
boolean |
- |
No description. Default: true User Property: disable-banner |
<excludeClassname> |
String |
- |
Regular expression to exclude test classes by name. User Property: exclude-classname |
<excludeEngine> |
List<String> |
- |
Test engine IDs to exclude. User Property: exclude-engine |
<excludePackage> |
List<String> |
- |
Package names to exclude from test execution. User Property: exclude-package |
<excludeTag> |
List<String> |
- |
Tags to exclude from test execution. User Property: exclude-tag |
<extenderStartLevel> |
int |
- |
The start level used for bundles providing an osgi.extender capability.Default: 1 |
<failIfNoTests> |
boolean |
- |
Fail and return exit status code 2 if no tests are found. Default: true User Property: fail-if-no-tests |
<frameworkProperties> |
Map<String,String> |
- |
Additional OSGi framework properties to use when executing the test |
<includeClassname> |
String |
- |
Regular expression to include test classes by name. User Property: include-classname |
<includeEngine> |
List<String> |
- |
Test engine IDs to include (e.g., "junit-jupiter", "junit-vintage"). User Property: include-engine |
<includePackage> |
List<String> |
- |
Package names to include in test execution. User Property: include-package |
<includeTag> |
List<String> |
- |
Tags to include in test execution. User Property: include-tag |
<launchType> |
String |
- |
No description. Default: embedded User Property: junit-platform.launchType |
<printBundles> |
boolean |
- |
No description. |
<reportsDir> |
File |
- |
No description. Default: ${project.build.directory}/testReports User Property: reports-dir |
<scanClasspath> |
boolean |
- |
No description. Default: true User Property: scan-classpath |
<selectClass> |
List<String> |
- |
Select specific test classes to execute. Each entry should be a fully qualified class name (e.g., "com.example.MyTest"). User Property: select-class |
<selectMethod> |
List<String> |
- |
Select specific test methods to execute. Each entry should be a fully qualified method name (e.g., "com.example.MyTest#myTestMethod"). User Property: select-method |
<selectModule> |
List<String> |
- |
Select specific modules for test discovery (JPMS). User Property: select-module |
<selectPackage> |
List<String> |
- |
Select packages to scan for tests. User Property: select-package |
<selectResource> |
List<String> |
- |
Select classpath resources for test discovery. User Property: select-resource |
<selectUri> |
List<String> |
- |
Select URIs for test discovery. User Property: select-uri |
<singleColor> |
boolean |
- |
Style test output in single color (no ANSI color codes). Default: false User Property: single-color |
<skip> |
boolean |
- |
No description. User Property: junit-platform.skip |
<startExtender> |
boolean |
- |
If bundles providing an osgi.extender capability should be started by defaultDefault: true |
<startupTimout> |
long |
- |
Value in seconds how long to wait until the framework reaches the final startlevel Default: 30 |
Parameter Details
<applicationStartLevel>
The initial start level used for bundles and the OSGi framework.
- Type:
int
- Required:
No
- Default:
4
<config>
No description.
- Type:
java.util.Map<java.lang.String, java.lang.String>
- Required:
No
<details>
Tree printing mode for test output. Valid values: none, summary, flat, tree, verbose.
- Type:
java.lang.String
- Required:
No
- User Property:
details
<detailsTheme>
ASCII art theme for tree printing. Valid values: ascii, unicode.
- Type:
java.lang.String
- Required:
No
- User Property:
details-theme
<disableBanner>
No description.
- Type:
boolean
- Required:
No
- User Property:
disable-banner
- Default:
true
<excludeClassname>
Regular expression to exclude test classes by name.
- Type:
java.lang.String
- Required:
No
- User Property:
exclude-classname
<excludeEngine>
Test engine IDs to exclude.
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
exclude-engine
<excludePackage>
Package names to exclude from test execution.
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
exclude-package
<excludeTag>
Tags to exclude from test execution.
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
exclude-tag
<extenderStartLevel>
The start level used for bundles providing an
osgi.extender
capability.- Type:
int
- Required:
No
- Default:
1
<failIfNoTests>
Fail and return exit status code 2 if no tests are found.
- Type:
boolean
- Required:
No
- User Property:
fail-if-no-tests
- Default:
true
<frameworkProperties>
Additional OSGi framework properties to use when executing the test
- Type:
java.util.Map<java.lang.String, java.lang.String>
- Required:
No
<includeClassname>
Regular expression to include test classes by name.
- Type:
java.lang.String
- Required:
No
- User Property:
include-classname
<includeEngine>
Test engine IDs to include (e.g., "junit-jupiter", "junit-vintage").
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
include-engine
<includePackage>
Package names to include in test execution.
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
include-package
<includeTag>
Tags to include in test execution.
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
include-tag
<launchType>
No description.
- Type:
java.lang.String
- Required:
No
- User Property:
junit-platform.launchType
- Default:
embedded
<printBundles>
No description.
- Type:
boolean
- Required:
No
<reportsDir>
No description.
- Type:
java.io.File
- Required:
No
- User Property:
reports-dir
- Default:
${project.build.directory}/testReports
<scanClasspath>
No description.
- Type:
boolean
- Required:
No
- User Property:
scan-classpath
- Default:
true
<selectClass>
Select specific test classes to execute. Each entry should be a fully qualified class name (e.g., "com.example.MyTest").
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
select-class
<selectMethod>
Select specific test methods to execute. Each entry should be a fully qualified method name (e.g., "com.example.MyTest#myTestMethod").
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
select-method
<selectModule>
Select specific modules for test discovery (JPMS).
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
select-module
<selectPackage>
Select packages to scan for tests.
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
select-package
<selectResource>
Select classpath resources for test discovery.
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
select-resource
<selectUri>
Select URIs for test discovery.
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
select-uri
<singleColor>
Style test output in single color (no ANSI color codes).
- Type:
boolean
- Required:
No
- User Property:
single-color
- Default:
false
<skip>
No description.
- Type:
boolean
- Required:
No
- User Property:
junit-platform.skip
<startExtender>
If bundles providing an
osgi.extender
capability should be started by default- Type:
boolean
- Required:
No
- Default:
true
<startupTimout>
Value in seconds how long to wait until the framework reaches the final startlevel
- Type:
long
- Required:
No
- Default:
30