mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-01 22:11:16 +00:00
Adds test coverage report and fr-dev shortcuts
This commit is contained in:
parent
306f067a21
commit
e07a072ced
2 changed files with 8 additions and 2 deletions
9
fr-dev
9
fr-dev
|
@ -34,11 +34,16 @@ case "$1" in
|
||||||
dbshell)
|
dbshell)
|
||||||
docker-compose exec db psql -U fedireads fedireads
|
docker-compose exec db psql -U fedireads fedireads
|
||||||
;;
|
;;
|
||||||
|
|
||||||
restart_celery)
|
restart_celery)
|
||||||
docker-compose restart celery_worker
|
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
|
esac
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
celery==4.4.2
|
celery==4.4.2
|
||||||
|
coverage=5.1
|
||||||
Django==3.0.3
|
Django==3.0.3
|
||||||
django-model-utils==4.0.0
|
django-model-utils==4.0.0
|
||||||
environs==7.2.0
|
environs==7.2.0
|
||||||
|
|
Loading…
Reference in a new issue