Check http://testmycode.github.io for contribution guidelines!
The Nix dev shell (nix develop) installs lefthook hooks.
On commit, rubocop --autocorrect runs on the staged Ruby files and the fixes are re-staged.
It never blocks a commit. Skip it with LEFTHOOK=0 git commit ....
Before opening a PR, run bin/branch-ready-checks (rubocop, brakeman, srb tc, and the tapioca verifications; needs a database).
It may take some time to run whole test suite, thus while developing one may find beneficial to run just single test cases or tests from one file.
bundle exec rubocop
bundle exec brakeman. Record a reviewed false positive, with a note saying why it is safe, through bundle exec brakeman -I.
rvmsudo rake spec
rvmsudo rake spec SPEC=spec/integration/student_usecases_spec.rb
rvmsudo rake spec SPEC=spec/integration/student_usecases_spec.rb:175
rvmsudo rake spec SPEC=spec/controllers/exercise_status_controller.rb SPEC_OPTS="--fail-fast"