- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我尝试通过 Maven (surefire) 一起使用 Cucumber 和 Junit 时,报告的测试数量有误。我只有 250 个测试,但 Jenkins 向我展示了 1200 个测试。所以当我调查它时,我只能找到一个关于surefire插件问题的引用。
https://github.com/cucumber/cucumber-jvm/issues/322
如何纠正?
最佳答案
我只能用surefire来创造黑客。如果你喜欢,你可以使用:
<plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>change-bad-cucumber-test-file</id>
<!-- here the phase you need -->
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/surefire-reports-fixed</outputDirectory>
<resources>
<resource>
<directory>${basedir}/target/cucumber</directory>
</resource>
<resource>
<directory>${basedir}/target/surefire-reports</directory>
<excludes>
<exclude>**/*CucumberTest.*</exclude>
</excludes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
@RunWith(Cucumber.class)
@Cucumber.Options(format = { "pretty", "junit:target/cucumber/TEST-packageHereToClass.CucumberTest.xml", "json:target/cucumber.json" })
public class CucumberTest {
...
}
关于maven - cucumber 和junit在jenkins中的测试量错误(万无一失),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13341333/
我有 2 个配置文件,可能会也可能不会一起使用来运行一组测试。它们每个都需要不同的 vmargs 才能运行,但如果它们一起使用,可以将它们相互附加。 我正在寻找的是一种将 argLine 设置为其当前
当我尝试通过 Maven (surefire) 一起使用 Cucumber 和 Junit 时,报告的测试数量有误。我只有 250 个测试,但 Jenkins 向我展示了 1200 个测试。所以当我调
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 去年关闭。 Improve this
我们有大量复杂的集成测试需要运行几个小时。如何在测试运行时而不是在运行后接收 TestNG XML 报告? 最佳答案 您可以构建一个扩展 org.testng.TestListenerAdapter
######################################## # some comment # other comment ############################
基于我在 linux/include/linux/jiffies.h 中找到的代码: 41 #define time_after(a,b) \ 42 (typechec
我是一名优秀的程序员,十分优秀!