-
Notifications
You must be signed in to change notification settings - Fork 115
sauce-rspec gem should be created #91
Comments
+1, especially on the setting the name of the job on Sauce |
I'm working on the foundational work for this, part of what is required is actually cleaning up the "root" sauce.gem. @chendo, do you have any suggestions for the syntax for using Sauce with RSpec? |
I'm using Sauce with Capybara, so the main thing for me is to set I've also just an env variable called USE_SAUCE that switches between selenium and sauce driver. I would like to see a way to name parts of an RSpec example, kind of like how Cucumber steps work (without actually having to use Cucumber). This would enable the results to be easier to read what part actually went wrong, as well as being able to test multiple parts of a flow in one go rather than having multiple tests almost doing the same thing. Having these show up on the Sauce job log would be fantastic but would require much more work I presume. |
Something like this, but not sure if I would prefer block syntax or like Rake feature "authentication" do
scenario "log in" do
visit "/"
tag("Sign in") do
click_link 'Sign In'
fill_in "Username", with: "user"
fill_in "Password", with: "pass"
click_button 'Sign In'
within('#user_username') do
page.should have_content('user')
end
end
tag("Sign out") do
click_button 'Sign Out'
page.should_not have_selector('#user_username')
end
end
end Then the stuff in |
Right now these are just some loose ideas of what the gem should handle
Sauce.config do |c| c[:name] = 'Foo' end
)The text was updated successfully, but these errors were encountered: