tycho: -Dtest=Xxxxxx is also evaluated on non test plugins and thus fails
when testing with the tycho 2.4 rc i see the following behaviour. with have this pom in a sample project
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.swtbot.parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>org.eclipse.xtext.swtbot.testing</artifactId>
<packaging>eclipse-plugin</packaging>
</project>
with tycho 2.4 the build fails with
2021-07-19T18:03:49.8467802Z [INFO] No tests to run.
2021-07-19T18:03:49.8468597Z [INFO] ------------------------------------------------------------------------
2021-07-19T18:03:49.8469761Z [INFO] Reactor Summary for org.eclipse.xtext.swtbot.parent 1.0.0-SNAPSHOT:
2021-07-19T18:03:49.8470536Z [INFO]
2021-07-19T18:03:49.8471346Z [INFO] org.eclipse.xtext.swtbot.parent .................... SUCCESS [ 2.100 s]
2021-07-19T18:03:49.8472490Z [INFO] org.eclipse.xtext.integrationtests.target .......... SUCCESS [ 0.434 s]
2021-07-19T18:03:49.8473642Z [INFO] org.eclipse.xtext.swtbot.testing ................... FAILURE [ 5.509 s]
2021-07-19T18:03:49.8474630Z [INFO] org.eclipse.xtext.swtbot.tests ..................... SKIPPED
2021-07-19T18:03:49.8475643Z [INFO] ------------------------------------------------------------------------
2021-07-19T18:03:49.8476244Z [INFO] BUILD FAILURE
2021-07-19T18:03:49.8476998Z [INFO] ------------------------------------------------------------------------
2021-07-19T18:03:49.8477617Z [INFO] Total time: 02:32 min
2021-07-19T18:03:49.8478279Z [INFO] Finished at: 2021-07-19T18:03:49Z
2021-07-19T18:03:49.8479060Z [INFO] ------------------------------------------------------------------------
2021-07-19T18:03:49.8481008Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project org.eclipse.xtext.swtbot.testing: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.) -> [Help 1]
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 22 (22 by maintainers)
will try later this week
can confirm that the workaround seems to work