Adds test coverage report and fr-dev shortcuts

This commit is contained in:
Mouse Reeve 2020-05-12 15:12:04 -07:00
parent 306f067a21
commit e07a072ced
2 changed files with 8 additions and 2 deletions

9
fr-dev
View file

@ -34,11 +34,16 @@ case "$1" in
dbshell)
docker-compose exec db psql -U fedireads fedireads
;;
restart_celery)
docker-compose restart celery_worker
;;
test)
docker-compose exec web coverage run --source='.' manage.py test
;;
test_report)
docker-compose exec web coverage report
;;
*)
echo "Unrecognised command. Try: up, initdb, resetdb,makemigrations, migrate, shell, dbshell,restart_celery"
echo "Unrecognised command. Try: up, initdb, resetdb,makemigrations, migrate, shell, dbshell, restart_celery, test, test_report"
;;
esac

View file

@ -1,4 +1,5 @@
celery==4.4.2
coverage=5.1
Django==3.0.3
django-model-utils==4.0.0
environs==7.2.0