我有了一個測試項目的依賴Maven項目。我想在這個項目上運行TestNG的:運行TestNG的上一個maven test依賴
<groupId>com.myGroup</groupId>
<artifactId>assembly</artifactId>
<version>1.0.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.4</version>
</dependency>
<dependency>
<groupId>com.myGroup</groupId>
<artifactId>myArtifact</artifactId>
<version>1.0.0-SNAPSHOT</version>
<type>test-jar</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<test>MyTest</test>
<suiteXmlFiles>
<suiteXmlFile>test-suites/all-test.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</build>
但是當我運行MVN清潔上述項目安裝沒有任何反應。是否有可能設置maven-surefire-plugin來運行testNG。二進制依賴?
編輯:
此:
http://softwaremavens.blogspot.dk/2009/09/running-tests-from-maven-test-jar-in.html
似乎即期。如果可以直接從依賴項運行代碼而不是解壓它,那可能會很好。