Use GOV.UK Docker to run any commands that follow.
The default rake task runs all the tests and records code coverage:
bundle exec rake
After running the tests, the coverage/ folder contains the generated report.
Authentication is provided by the GDS-SSO gem. In the production environment an instance of Signon must be running in order to sign in.
In the development environment, the mock strategy is used by default. This removes the requirement for authentication, instead returning the first user in the database as the current user. This user is defined in db/seeds.rb.