eclipse-tycho / tycho

Tycho project repository (tycho)
https://tycho.eclipseprojects.io
Eclipse Public License 2.0
168 stars 189 forks source link

tycho-surefire-plugin:3.0.0: Error message wrong in case launching Equinox failed #1444

Open kwin opened 2 years ago

kwin commented 2 years ago

After upgrading from version 2.7.5 to 3.0.0 I experience the following error:

[INFO] --- tycho-surefire-plugin:3.0.0:test (default-test) @ org.apache.sling.ide.eclipse-test ---
[INFO] Could not find a java toolchain of type jdk, using java from JAVA_HOME instead (/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/java)
[INFO] Executing Test Runtime with timeout 0, logs (if any) will be placed at: /Users/konradwindszus/git/sling/sling-ide-tooling/eclipse/eclipse-test/target/work/data/.metadata/.log
[INFO] Command line:
    [/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/java, -Dosgi.noShutdown=false, -Dosgi.os=macosx, -Dosgi.ws=cocoa, -Dosgi.arch=aarch64, -XstartOnFirstThread, -Dosgi.clean=true, -Dlaunchpad.http.port=60560, -Dorg.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss:SSS Z, -Dorg.slf4j.simpleLogger.defaultLogLevel=INFO, -Dorg.slf4j.simpleLogger.showDateTime=true, -jar, /Users/konradwindszus/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.6.400.v20210924-0641/org.eclipse.equinox.launcher-1.6.400.v20210924-0641.jar, -data, /Users/konradwindszus/git/sling/sling-ide-tooling/eclipse/eclipse-test/target/work/data, -install, /Users/konradwindszus/git/sling/sling-ide-tooling/eclipse/eclipse-test/target/work, -configuration, /Users/konradwindszus/git/sling/sling-ide-tooling/eclipse/eclipse-test/target/work/configuration, -application, org.eclipse.tycho.surefire.osgibooter.uitest, -testproperties, /Users/konradwindszus/git/sling/sling-ide-tooling/eclipse/eclipse-test/target/surefire.properties, -nouithread]
....
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:3.0.0:test (default-test) on project org.apache.sling.ide.eclipse-test: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/konradwindszus/git/sling/sling-ide-tooling/eclipse/eclipse-test/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]

In fact the folder target/surefire-reports is empty and it rather seems the issue is with starting Eclipse. The exception message should be improved for those cases.

laeubi commented 1 year ago

@kwin do you plan a fix, as we are currently prepare for a 3.0.5 Tycho release this might then be worth being included.