Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 单个rake配置文件中的多个输出文件_Ruby On Rails_Ruby_Json_Cucumber_Rake - Fatal编程技术网

Ruby on rails 单个rake配置文件中的多个输出文件

Ruby on rails 单个rake配置文件中的多个输出文件,ruby-on-rails,ruby,json,cucumber,rake,Ruby On Rails,Ruby,Json,Cucumber,Rake,我已经创建了一个rake文件来运行Cucumber特性。在上述Rake文件中,我设置了几个配置文件: headless: BROWSER_TYPE=headless -f html -o "HBreport.html" firefox: BROWSER_TYPE=firefox -f html -o "ffreport.html" ie: BROWSER_TYPE=ie Headless_JSON: BROWSER_TYPE=headless -f pretty -f json -o "repo

我已经创建了一个rake文件来运行Cucumber特性。在上述Rake文件中,我设置了几个配置文件:

headless: BROWSER_TYPE=headless -f html -o "HBreport.html"
firefox: BROWSER_TYPE=firefox -f html -o "ffreport.html"
ie: BROWSER_TYPE=ie
Headless_JSON: BROWSER_TYPE=headless -f pretty -f json -o "report.json"
有谁能告诉我是否可以运行每个rake概要文件并让它输出两个不同的报告

例如,上面的“headless”概要文件当前将报告输出到一个html文件中,以便于涉众阅读,但是让该概要文件同时输出一个.html和.json文件对于开发人员来说是非常有用的。这是可能的,还是我必须同时运行.html和.json配置文件才能获得这两个输出


提前感谢,

只需为每个配置文件添加更多参数即可。现在看起来很明显。。。headless:BROWSER\u TYPE=headless-f pretty-f html-o“hbreport.html”firefox:BROWSER\u TYPE=firefox-f pretty-f html-o“ffreport.html”ie:BROWSER\u TYPE=ie-f pretty-f html-o“iereport.html”只需为每个配置文件添加更多参数。现在看起来很明显。。。headless:BROWSER\u TYPE=headless-f pretty-f html-o“hbreport.html”firefox:BROWSER\u TYPE=firefox-f pretty-f html-o“ffreport.html”ie:BROWSER\u TYPE=ie-f pretty-f html-o“iereport.html”