Performance: Integration tests
MEDIUM IMPACT
Integration tests affect the overall test suite runtime and can impact developer feedback speed during development.
test 'user login flow', :focus do post login_path, params: { email: 'user@example.com', password: 'password' } assert_redirected_to dashboard_path end
test 'user login flow' do visit login_path fill_in 'Email', with: 'user@example.com' fill_in 'Password', with: 'password' click_button 'Log in' assert_text 'Welcome' end
| Pattern | Test Runtime | Resource Usage | Developer Feedback | Verdict |
|---|---|---|---|---|
| Full browser integration test | High (seconds per test) | High (browser + DB) | Slow feedback | [X] Bad |
| Request-level integration test | Low (milliseconds) | Low (DB only) | Fast feedback | [OK] Good |