下面是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>
答案 0 :(得分:1)