Cucumber 如何使用并行测试重新运行失败的场景?

Cucumber 如何使用并行测试重新运行失败的场景?,cucumber,Cucumber,我的项目根目录中有文件rerun.txt=> config/ features/ rerun.txt rerun.txt=> features/auth.feature:11 我试试这个: bundle exec parallel_cucumber @rerun1.txt -o "ENV=.$env BROWSER=chrome" --group-by scenarios -n 2 => 这是: bundle exec parallel_cucumber features/ -o "EN

我的项目根目录中有文件rerun.txt=>

config/
features/
rerun.txt
rerun.txt=>

features/auth.feature:11
我试试这个:

bundle exec parallel_cucumber @rerun1.txt -o "ENV=.$env BROWSER=chrome" --group-by scenarios -n 2 
=>

这是:

bundle exec parallel_cucumber features/ -o "ENV=.$env BROWSER=chrome @rerun1.txt" --group-by scenarios -n 2

但是这会执行features/folder中的所有场景,我以前没有使用过,但我相信您添加到命令行中的
@
符号就是罪魁祸首。尝试:

bundle exec parallel_cucumber ./rerun1.txt -o "ENV=.$env BROWSER=chrome" --group-by scenarios -n 2

我这样做:
rerun=`cat rerun1.txt`;bundle exec parallel_cucumber$rerun-o“ENV=.$ENV BROWSER=chrome”--按场景分组-n2
并且它是有效的尝试这个只是为了确保它不是别的:bundle exec parallel_cumber features/auth.feature:11-o“ENV=.$ENV BROWSER=chrome”--按场景分组-n2它的工作很好。我这样做:
rerun=`cat rerun1.txt`;bundle exec parallel_$rerun-o“ENV=.$ENV BROWSER=chrome”--按场景分组-n2
,也可以正常工作
bundle exec parallel_cucumber ./rerun1.txt -o "ENV=.$env BROWSER=chrome" --group-by scenarios -n 2