2017-12-02 11 views
0

Maven/TychoでUIテストSWTBotを実行したいと思い、Tychoが自分の.productを取得できません。 この私のログ:Maven/Tycho SWTBot Eclipse RCP

!ENTRY org.eclipse.equinox.app 0 0 2017-12-02 16:36:32.573 
!MESSAGE Product tychodemo.bundle.product could not be found. 
***WARNING: Display must be created on main thread due to Cocoa restrictions. 

!ENTRY org.eclipse.osgi 4 0 2017-12-02 16:36:32.760 
!MESSAGE Application error 
!STACK 1 
... 

enter image description here

これは私のpom.xmlである:それは私の.productを置くための適切な場所

<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/xsd/maven-4.0.0.xsd"> 
 
    <modelVersion>4.0.0</modelVersion> 
 
    <artifactId>tychodemo.swtbot.test</artifactId> 
 
    <packaging>eclipse-test-plugin</packaging> 
 
    <parent> 
 
    <groupId>tychodemo</groupId> 
 
    <artifactId>tychodemo.parent</artifactId> 
 
    <version>1.0.0-SNAPSHOT</version> 
 
    <relativePath>../tychodemo.parent</relativePath> 
 
    </parent> 
 
    <build> 
 
    <plugins> 
 
     <plugin> 
 
     <groupId>org.eclipse.tycho</groupId> 
 
     <artifactId>tycho-surefire-plugin</artifactId> 
 
     <version>${tycho-version}</version> 
 
     <configuration> 
 
      <useUIHarness>true</useUIHarness> 
 
      <useUIThread>false</useUIThread> 
 
      <!-- use our product and application to launch the tests --> 
 
      <product>tychodemo.bundle.product</product> 
 
      <application>org.eclipse.e4.ui.workbench.swt.E4Application</application> 
 
     </configuration> 
 
     </plugin> 
 
    </plugins> 
 
    </build> 
 
</project>

ですか?

+0

あなたは、「アプリケーションエラー」のための全体のスタックトレースを投稿することができますか? IDEからテストを実行しますか? – tkotisis

+0

私はこの問題を両方のcas(ターミナルとide)、この私の全体の[ログ](https://gist.github.com/aomnes/4d1caf8b14379a9e5ba5b4975394002f) –

+0

私は[プロジェクト](https://github.com)です/ aomnes/maven_tycho) –

答えて

0

エラーがissue on the MacOS platformの指標であるように思わ アントワーヌ、ありがとうございます。

あなたが個別のプロファイルで-XstartOnFirstThreadコマンドラインオプションを指定する必要がMac上でテストを起動するには:

<profile> 
    <id>macosx</id> 
    <activation> 
    <os> 
     <name>macosx</name> 
     <family>mac</family> 
    </os> 
    </activation> 
    <properties> 
    <ui.test.vmargs>-Xmx512m -XX:MaxPermSize=256m -XstartOnFirstThread</ui.test.vmargs> 
    </properties> 
</profile> 
関連する問題