Wrong tested application is started when tests are running with Tycho [message #1800213] |
Fri, 21 December 2018 06:59  |
Eclipse User |
|
|
|
Hello!
I created a simple gui test using SWTBot. It is a plugin for RCP E4 application. After that I wrote a pom.xml for my test and added my RCP application as a feature to target platform configuration.
If I run from this test plugin module, tycho launches pure Eclipse IDE without my RCP application, that I have specified in the target platform configuration section.
But If I am running this test using Eclipse IDE as a SWTBot test, everything is working fine.
Here is my pom.xml for test module:
<?xml version="1.0" encoding="UTF-8"?>
<project >
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jkiss.dbeaver</groupId>
<artifactId>dbeaver</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>
<artifactId>org.jkiss.dbeaver.functional.tests</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<product>org.jkiss.dbeaver.core.product</product>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<dependency-resolution>
<extrarequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.jkiss.dbeaver.ce.feature</id>
<versionrange>0.0.0</versionrange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.e4.rcp</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.pde</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extrarequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</build>
</project>
I've looked at data folder and did't found plugins of my test application.
What shall I configure to make tycho copying this plugins to data folder?
Or may be I have wrong configuration now?
|
|
|
|
Re: Wrong tested application is started when tests are running with Tycho [message #1800946 is a reply to message #1800757] |
Thu, 10 January 2019 04:07   |
Eclipse User |
|
|
|
I've specified application using application tag. The error is now "Could not find application". But the situation is the same. Tycho does not copy my plugins in data directory.
Console log:
$ mvn verify -Dtycho.showEclipseLog=true
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: org.jkiss.dbeaver:org.jkiss.dbeaver.uitests:0.0.1-SNAPSHOT @ /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/pom.xml
[INFO] Fetching p2.index from http://download.eclipse.org/releases/2018-09/
[INFO] Adding repository http://download.eclipse.org/releases/2018-09
[INFO] Fetching p2.index from http://download.eclipse.org/technology/epp/packages/2018-09/
[INFO] Fetching p2.index from http://download.eclipse.org/releases/2018-09/201809191002/
[INFO] Fetching p2.index from http://download.eclipse.org/releases/2018-09/201809191002/
[INFO] Fetching p2.index from http://download.eclipse.org/tools/orbit/downloads/drops/R20180330011457/repository/
[INFO] Fetching p2.index from http://download.eclipse.org/tools/orbit/downloads/drops/R20180330011457/repository/
[INFO] Adding repository http://download.eclipse.org/tools/orbit/downloads/drops/R20180330011457/repository
[INFO] Fetching p2.index from http://download.eclipse.org/tools/orbit/downloads/drops2/R20180330011457/repository/
[INFO] Fetching p2.index from http://download.eclipse.org/tools/orbit/downloads/drops2/R20180330011457/repository/
[INFO] Fetching p2.index from http://download.eclipse.org/nebula/releases/latest/
[INFO] Fetching p2.index from http://download.eclipse.org/nebula/releases/latest/
[INFO] Adding repository http://download.eclipse.org/nebula/releases/latest
[INFO] Adding repository https://dbeaver.io/eclipse-repo
[INFO] Adding repository http://eclipse-color-theme.github.com/update
[INFO] Fetching p2.index from http://download.eclipse.org/technology/swtbot/releases/latest/
[INFO] Fetching p2.index from http://download.eclipse.org/technology/swtbot/releases/latest/
[INFO] Adding repository http://download.eclipse.org/technology/swtbot/releases/latest
[INFO] Resolving dependencies of MavenProject: org.jkiss.dbeaver:org.jkiss.dbeaver.uitests:0.0.1-SNAPSHOT @ /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/pom.xml
[INFO] Resolving class path of MavenProject: org.jkiss.dbeaver:org.jkiss.dbeaver.uitests:0.0.1-SNAPSHOT @ /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/pom.xml
[INFO]
[INFO] ------------< org.jkiss.dbeaver:org.jkiss.dbeaver.uitests >-------------
[INFO] Building org.jkiss.dbeaver.uitests 0.0.1-SNAPSHOT
[INFO] ------------------------[ eclipse-test-plugin ]-------------------------
[INFO]
[INFO] --- tycho-packaging-plugin:1.1.0:build-qualifier (default-build-qualifier) @ org.jkiss.dbeaver.uitests ---
[INFO] The project's OSGi version is 0.0.1.201901091644
[INFO]
[INFO] --- tycho-packaging-plugin:1.1.0:validate-id (default-validate-id) @ org.jkiss.dbeaver.uitests ---
[INFO]
[INFO] --- tycho-packaging-plugin:1.1.0:validate-version (default-validate-version) @ org.jkiss.dbeaver.uitests ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ org.jkiss.dbeaver.uitests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/src/main/resources
[INFO]
[INFO] --- tycho-compiler-plugin:1.1.0:compile (default-compile) @ org.jkiss.dbeaver.uitests ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ org.jkiss.dbeaver.uitests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (compiletests) @ org.jkiss.dbeaver.uitests ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (test) @ org.jkiss.dbeaver.uitests ---
[INFO] No tests to run.
[INFO]
[INFO] --- target-platform-configuration:1.1.0:target-platform (default-target-platform) @ org.jkiss.dbeaver.uitests ---
[INFO]
[INFO] --- tycho-packaging-plugin:1.1.0:package-plugin (default-package-plugin) @ org.jkiss.dbeaver.uitests ---
[INFO] Building jar: /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/target/org.jkiss.dbeaver.uitests-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- tycho-p2-plugin:1.1.0:p2-metadata-default (default-p2-metadata-default) @ org.jkiss.dbeaver.uitests ---
[INFO]
[INFO] --- tycho-surefire-plugin:1.1.0:test (default-test) @ org.jkiss.dbeaver.uitests ---
[INFO] Expected eclipse log file: /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/target/work/data/.metadata/.log
[INFO] Command line:
[/opt/java/jdk1.8.0_161/jre/bin/java, -Dosgi.noShutdown=false, -Dosgi.os=linux, -Dosgi.ws=gtk, -Dosgi.arch=x86_64, -Dosgi.clean=true, -jar, /home/alexey_chibisov/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.5.100.v20180827-1352/org.eclipse.equinox.launcher-1.5.100.v20180827-1352.jar, -debug, -consolelog, -data, /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/target/work/data, -install, /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/target/work, -configuration, /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/target/work/configuration, -application, org.eclipse.tycho.surefire.osgibooter.uitest, -testproperties, /home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/target/surefire.properties, -testApplication, org.jkiss.dbeaver.core.application.standalone, -product, org.jkiss.dbeaver.core.product, -nouithread]
Configuration location:
file:/home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/target/work/configuration/
Configuration file:
file:/home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/target/work/configuration/config.ini loaded
Install location:
file:/home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/target/work/
Framework located:
file:/home/alexey_chibisov/.m2/repository/p2/osgi/bundle/org.eclipse.osgi/3.13.100.v20180827-1536/org.eclipse.osgi-3.13.100.v20180827-1536.jar
Framework classpath:
file:/home/alexey_chibisov/.m2/repository/p2/osgi/bundle/org.eclipse.osgi/3.13.100.v20180827-1536/org.eclipse.osgi-3.13.100.v20180827-1536.jar
Debug options:
file:/home/alexey_chibisov/dev/dbeaver/test-plugins/org.jkiss.dbeaver.uitests/.options not found
Time to load bundles: 405
Starting application: 1291
Launching application org.jkiss.dbeaver.core.application.standalone...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.238 s
[INFO] Finished at: 2019-01-09T19:45:07+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.1.0:test (default-test) on project org.jkiss.dbeaver.uitests: Could not find application "org.jkiss.dbeaver.core.application.standalone" in the test runtime. Make sure that the test runtime includes the bundle which defines this application. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06330 seconds