java - 如何将我的黄瓜项目转换为并行运行?
问题描述
嗨,我目前有一个大型项目,我在其中运行我的黄瓜测试,我在晚上运行这些,但我发现 jenkins 构建在一个小时左右后不断中断,所以我现在想并行运行我的测试。
这可能与现有项目有关吗,我的项目在 src/test/java 目录中设置了功能文件、步骤、运行器等
我的测试跑步者看起来像这样
import io.cucumber.junit.CucumberOptions;
import io.cucumber.junit.Cucumber;
import org.junit.runner.RunWith;
import org.testng.annotations.DataProvider;
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"src/test/java/noting/feature_files/"},
glue = {"noting.steps", "noting.hooks"},
tags = {"@regression"},
monochrome = true,
plugin = {"pretty", "json:target/cucumber-report/cucumber.json", "rerun:target/rerun.txt"}
)
public class MainRunner {
}
有没有办法将其转换为并行运行,可能是通过注释或功能包?
解决方案
推荐阅读
- wpf - 如何在 WPF 中同步两个滚动条
- r - 如何告诉 R 将函数应用于多个数据?
- java-8 - 欧盟结束夏令时将如何影响 Java8 时间 API
- docker - 如何在弹性搜索 docker 映像上运行 crontab 作业
- c# - 在 WinForms Designer 中执行自定义代码
- laravel - 如何显示验证错误?
- python - Pandas to stata 不保留布尔类型
- django - 使用 nginx 和 gunicorn 的 Django 500 服务器错误
- rx-java2 - 如何在 RxJava2 中连接EagerDelayError
- apache-kafka - 帐户借记中的状态不一致 - 使用 Kafka 事务的信用申请