特定于文件夹的黄瓜报告无需并行运行? [英] Folder specific cucumber-reporting without parallel run?

查看:95
本文介绍了特定于文件夹的黄瓜报告无需并行运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想知道我是否可以为特定文件夹设置黄瓜报告?

Was wondering if I could get setup cucumber-reporting for specific folders?

例如,在 https://github.com/intuit/karate#naming-conventions ,在 CatsRunner.java 中,我设置了第三方黄瓜报告?没有并行执行.请提供建议或指导我进行设置.

For example in the https://github.com/intuit/karate#naming-conventions, in CatsRunner.java i set up the third party cucumber reporting? without parallel execution. please advise or direct me on how to set it up.

理性.它更易于阅读,并有助于我进行调试

Rationale. its easier to read and helps me in debugging

推荐答案

始终建议您使用 DemoTestParallel 在不同的程序包中. CucumberRunner.parallel() 的第一个参数必须是Java类-默认情况下,相同的软件包子文件夹将被扫描以查找*.feature文件.

You are always recommended to use the 3rd party Cucumber Reporting when you want HTML reports. And you can create as many Java classes similar to the DemoTestParallel in different packages. The first argument to CucumberRunner.parallel() needs to be a Java class - and by default, the same package and sub-folders will be scanned for *.feature files.

但是,我想您的问题仅仅是如何在开发模式下轻松调试单个功能.简单,只需使用@RunWith(Karate.class) JUnit运行器:视频 | 文档

BUT I think your question is simply how to easily debug a single feature in dev-mode. Easy, just use the @RunWith(Karate.class) JUnit runner: video | documentation

这篇关于特定于文件夹的黄瓜报告无需并行运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆