The NPQ app users RSpec for testing and Rubocop for linting ruby code.
The linting rules we use are inherited from RuboCop GOV.UK to ensure consistency across GOV.UK services. These are enforced at the PR stage by Github Actions.
This will run rspec, rubocop, and scss-lint.
bundle exec rake
To run just rspec:
bundle exec rspec
bundle exec rake parallel:setup
bundle exec rake parallel:spec
To safely autocorrect offenses run:
bundle exec rubocop -a
To autocorrect all offenses, safe and unsafe, run:
bundle exec rubocop -A
To lint the stylesheets run:
bundle exec scss-lint app/assets/stylesheets