Reduce verbosity for tests
This reduces the amount of chatter seen while running unit tests. In cases where the rake file printed out debug information this adds an override so that the tests don't have this show.
Not only is the easier to find unit test errors but stdout can be slow and the tests here run a little faster.
docker-compose run web bash -c 'export RAILS_ENV=test && rake db:test:prepare && rake test && rubocop'
Starting operationcodebackend_bundle_1 ... done
Starting operationcodebackend_operationcode-psql_1 ... done
Starting operationcodebackend_redis_1 ... done
Run options: --seed 61055
# Running:
......................................S.........................................................S..........................................................................................
Finished in 7.116397s, 26.2773 runs/s, 86.2796 assertions/s.
187 runs, 614 assertions, 0 failures, 0 errors, 2 skips
You have skipped tests. Run with --verbose for details.
Inspecting 251 files
...........................................................................................................................................................................................................................................................
251 files inspected, no offenses detected
Remove open and closed scope from the github statistic which can give warnings and confuse people.
Update gitignore to be okay with vscode
replace before_filter with before_action which was giving a deprecation warning.
Description of changes
Not only is the easier to find unit test errors but stdout can be slow and the tests here run a little faster.
before_filter
withbefore_action
which was giving a deprecation warning.