The document summarizes Masaki Nakagawa's presentation on web application testing tools for Perl and Rails. It discusses Rails testing frameworks like Test::Unit, RSpec, and Cucumber. It also compares the strengths and weaknesses of Perl and Rails testing and highlights the Capybara browser automation library and Brownie, a similar library inspired by Capybara for Perl applications.
5. Weakness
• Expectation and Verification
• vs. rr, rspec-mocks, mocha, ...
• Browser Integration API
• vs. Capybara, Webrat, ...
• Naming of Test Double modules
• Test::Mock::Guard is “Stub” module
2011 11 18
6. Comparision
• Pros
• TAP-based Test Description
• Many Helpful Modules
• Cons
• Non-Uniform Browser Integration
• Poor Expectation and Verification
2011 11 18
8. Capybara simulates how a real user would
interact with a web application.
It is agnostic about the driver running your
tests and currently comes with Rack::Test
and Selenium support built in.
2011 11 18
9. within("#session") do
fill_in 'Login', :with => 'user@example.com'
fill_in 'Password', :with => 'password'
end
click_link 'Sign in'
2011 11 18