Module: SmokeTest
- Defined in:
- lib/watirmark/rake/smoketest.rb
Class Method Summary collapse
- .cucumber_task(task_name, files = nil, tag = :smoke) ⇒ Object
- .rspec_task(task_name, files, tag = :smoke) ⇒ Object
Class Method Details
.cucumber_task(task_name, files = nil, tag = :smoke) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/watirmark/rake/smoketest.rb', line 12 def cucumber_task(task_name, files=nil, tag=:smoke) Dir.mkdir("reports") unless Dir.exists?("reports") Cucumber::Rake::Task.new(task_name) do |t| t.cucumber_opts = "--tags @#{tag} --tags ~@bug -r features #{FileList[files]} -b --format html -o reports/report.html --format pretty" end end |
.rspec_task(task_name, files, tag = :smoke) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/watirmark/rake/smoketest.rb', line 4 def rspec_task(task_name, files, tag=:smoke) Dir.mkdir("reports") unless Dir.exists?("reports") RSpec::Core::RakeTask.new(task_name) do |spec| spec.rspec_opts = "--tag #{tag} --tag ~bug -fd -fh --out reports/#{spec.name}.html --backtrace" spec.pattern = files end end |