2014-09-24 125 views
0

我有一個eclipse插件,其中包含使用SWTBot開發的JUnit測試。將插件重新部署到eclipse安裝中

我試圖在無盡模式下使用tycho-surefire-plugin在eclipse安裝上運行測試。這裏是我的行家conviguration:

<plugin> 
<groupId>org.eclipse.tycho</groupId> 
<artifactId>tycho-surefire-plugin</artifactId> 
<version>${tycho-version}</version> 
    <configuration> 
    <useUIThread>false</useUIThread> 
    <testRuntime>p2Installed</testRuntime> 
    <work>${work.dir}</work> 
    <useUIHarness>true</useUIHarness> 
    <useUIThread>false</useUIThread> 
    <argLine>${ui.test.args}</argLine> 
    <appArgLine>${ui.test.vmargs}</appArgLine> 
    <application>com.myapplication</application> 
</configuration> 
</plugin> 

我使用的運行測試:

mvn verify 

一切都只是事實,如果我做我的插件的較新版本的一些代碼的變化確定代碼沒有部署到eclipse安裝中。 在運行mvn之前,請驗證我正在運行mvn install命令。 如果我加入一個新的測試類,我得到

Caused by: org.apache.maven.surefire.util.NestedRuntimeException: Unable to create test class 'com.tests.MyNewClassTest'; nested exception is java.lang.ClassNotFoundException: 

我有我失蹤的任何配置。我怎樣才能重新部署測試插件?

回答

0

增量構建,即沒有clean的構建需要構建插件正確處理來自先前執行的目標文件夾中的構建結果。這顯然不是tycho-surefire插件的情況。

+0

功能請求可以在這裏提交:[Tycho問題跟蹤器](https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Tycho) – oberlies 2014-09-25 07:32:22