directory - Cucumber 没有创建文件夹,而是创建了一个文件
问题描述
我试图创建一个名为HtmlReports
using cucumber pretty 的文件夹。当我运行 Runner 类时,它创建了一个HtmlReports
文件而不是创建一个文件夹。
这是我的代码。
package Stepdefinition;
import org.junit.runner.RunWith;
import io.cucumber.junit.CucumberOptions;
import io.cucumber.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features="src/test/resources/Features",
monochrome = true,
plugin={"pretty","html:target/HtmlReports"}
)
public class Testrunner {
}
有人可以帮我吗?
解决方案
在 Cucumber v6 中,html 格式化程序得到了一些改进。它现在输出一个单页 html 报告。您可以通过添加.html
扩展名来打开它。
@CucumberOptions(plugin = "html:target/cucumber-report.html")
推荐阅读
- reactjs - React Router-无法渲染组件
- python - Plotly 在图例框中显示不完整的格式化跟踪名称
- firefox-addon - Firefox WebExtension - 使用浏览器凭据获取页面 HTML
- android - 为什么我的应用没有按应有的方式连接到 Firestore 数据库?
- php - WooCommerce 按自定义字段更改结帐时的总价
- whmcs - 如何在 WHMCS 自定义页面中包含文章?
- javascript - 在 FabricJS 中获取选定对象的边界框的大小
- python - 如果我必须在每周五上午 10 点运行 cron 作业,这是仪式设置:0 17 5 * * *
- python - 为什么 python 找不到 cwiid 模块?
- mosel - Xpress mosel 中的 abs 和 mpvar^integer 错误