下面是 Jankins 运行的 pom.xml 段,但它没有在电子邮件中发送发生的错误。有没有人让这个工作。
<plugin>
<groupId>de.berlios.jsunit</groupId>
<artifactId>jsunit-maven2-plugin</artifactId>
<executions>
<execution>
<id>test</id>
<configuration>
<sourceDirectory>./WebContent/jsunit</sourceDirectory>
<sources>
<source>blah.js</source>
</sources>
<testSourceDirectory>./WebContent/jsunit</testSourceDirectory>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<testSuites>
<testSuite>
<name>SampleSuite</name>
<type>TESTCASES</type>
<includes>
<include>blah_test.js</include>
</includes>
</testSuite>
</testSuites>
</configuration>
<goals>
<goal>jsunit-test</goal>
</goals>
</execution>
</executions>
</plugin>