提交 70754ca8 编写于 作者: K kohsuke

Moving the cobertura magic to a profile so that POM won't prevent NetBeans...

Moving the cobertura magic to a profile so that POM won't prevent NetBeans from running a single unit test.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16500 71c3de6d-444a-0410-be80-ed276b4c234a
上级 cd1a0a88
......@@ -191,41 +191,6 @@ THE SOFTWARE.
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<!-- run unit test -->
<execution>
<phase>test</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>${project.basedir}/src/build-script/unitTest.groovy</source>
</configuration>
</execution>
</executions>
<dependencies>
<dependency><!-- this needs to be visible to Ant inside GMaven, so has to be a plugin dependency -->
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.cobertura</groupId>
<artifactId>cobertura</artifactId>
<version>1.9</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<!-- unit tests are run by GMaven through Ant. I'm fed up with Maven! -->
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
......@@ -299,6 +264,51 @@ THE SOFTWARE.
</plugins>
</reporting>
</profile>
<profile>
<!--
Obtain code coverage report. This is done by running Unit tests on our own and suppressing surefire.
-->
<id>cobertura</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<!-- run unit test -->
<execution>
<phase>test</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>${project.basedir}/src/build-script/unitTest.groovy</source>
</configuration>
</execution>
</executions>
<dependencies>
<dependency><!-- this needs to be visible to Ant inside GMaven, so has to be a plugin dependency -->
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit</artifactId>
<version>1.7.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.cobertura</groupId>
<artifactId>cobertura</artifactId>
<version>1.9</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<!-- unit tests are run by GMaven through Ant. -->
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>sorcerer</id>
<reporting>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册