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).
Similarly to integration testing, system testing allows you to test how the components of your app work together, but from the point of view of a user. System tests allow you to test your application the way your users experience it and help you test your JavaScript as well. It does this 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. which are used for full browser testing of your application.