Rails - testing

29 Mar 25

rails t 
won't run system tests.
rails test:all
testing guide

CI failed on pushing technical diary. System tests were being run in the CI workflow that i hadn't run locally (as don't run with rails t).
Similar to integration testing, system testing allows you to test how the components of your app work together, but system tests allow you to test your application the way your users experience it and help you test your JavaScript as well. This is done by running tests in either a real or a headless browser (a browser which runs in the background without opening a visible window). System tests use Capybara under the hood.