Merge pull request #832 from mojombo/features-html
Add rake features:html
This commit is contained in:
commit
968ca6967c
5
Rakefile
5
Rakefile
|
@ -66,7 +66,10 @@ end
|
||||||
begin
|
begin
|
||||||
require 'cucumber/rake/task'
|
require 'cucumber/rake/task'
|
||||||
Cucumber::Rake::Task.new(:features) do |t|
|
Cucumber::Rake::Task.new(:features) do |t|
|
||||||
t.cucumber_opts = "--format progress"
|
t.profile = "travis"
|
||||||
|
end
|
||||||
|
Cucumber::Rake::Task.new(:"features:html", "Run Cucumber features and produce HTML output") do |t|
|
||||||
|
t.profile = "html_report"
|
||||||
end
|
end
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
desc 'Cucumber rake task not available'
|
desc 'Cucumber rake task not available'
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
default: --format progress
|
default: --format pretty
|
||||||
|
travis: --format progress
|
||||||
html_report: --format progress --format html --out=features_report.html
|
html_report: --format progress --format html --out=features_report.html
|
||||||
|
|
Loading…
Reference in New Issue