create cucumber profile for stories requiring selenium and stories not requiring selenium (=default)

This commit is contained in:
Reinier Balt 2010-01-13 21:41:21 +01:00
parent 022a94f686
commit 1fab30ff22
2 changed files with 5 additions and 4 deletions

View file

@ -3,5 +3,6 @@ rerun = File.file?('rerun.txt') ? IO.read('rerun.txt') : ""
rerun_opts = rerun.to_s.strip.empty? ? "--format progress features" : "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'} #{rerun}"
std_opts = "#{rerun_opts} --format rerun --out rerun.txt --strict --tags ~@wip"
%>
default: <%= std_opts %>
default: <%= std_opts %> --tags ~@selenium
selenium: <%= std_opts %> --tags @selenium
wip: --tags @wip:3 --wip features

View file

@ -24,7 +24,7 @@ Feature: View, add, remove notes
And I should see note "My Note A" on the notes page
Then the badge should show 1
@needsjs
@selenium
Scenario: Delete note from notes page
Given I have logged in as "testuser" with password "secret"
And I have a project "Pass Final Exam" with 2 notes
@ -33,7 +33,7 @@ Feature: View, add, remove notes
Then the first note should disappear
Then the badge should show 1
@needsjs
@selenium
Scenario: Link to note
Given I have logged in as "testuser" with password "secret"
And I have a project "Pass Final Exam" with 1 note
@ -41,7 +41,7 @@ Feature: View, add, remove notes
And I click the icon next to the note
Then I should see the note text
@needsjs
@selenium
Scenario: Toggle notes
Given I have logged in as "testuser" with password "secret"
And I have two projects with one note each