OperationCode / operationcode_backend

This is the backend repo for the Operation Code website
https://operationcode.org
MIT License
62 stars 110 forks source link

Test chatters #421

Closed apex-omontgomery closed 5 years ago

apex-omontgomery commented 5 years ago

Description of changes

  1. 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
  1. Remove open and closed scope from the github statistic which can give warnings and confuse people.
  2. Update gitignore to be okay with vscode
  3. replace before_filter with before_action which was giving a deprecation warning.
apex-omontgomery commented 5 years ago

Done the needful, tests are passing. Merging it.