forked from Hostea/dashboard
feat: test coverage report generation
parent
5c8e36ad9d
commit
99a7533a79
|
@ -8,7 +8,7 @@ pipeline:
|
|||
- pip install virtualenv
|
||||
- make env
|
||||
- make lint
|
||||
- make test
|
||||
- make coverage
|
||||
|
||||
services:
|
||||
database:
|
||||
|
|
5
Makefile
5
Makefile
|
@ -12,7 +12,8 @@ default: ## Run app
|
|||
. ./venv/bin/activate && python manage.py runserver
|
||||
|
||||
coverage: ## Generate test coverage report
|
||||
$(call unimplemented)
|
||||
. ./venv/bin/activate && coverage run manage.py test
|
||||
. ./venv/bin/activate && coverage report -m
|
||||
|
||||
doc: ## Generates documentation
|
||||
$(call unimplemented)
|
||||
|
@ -40,4 +41,4 @@ migrate: ## Run migrations
|
|||
$(call run_migrations)
|
||||
|
||||
test: ## Run tests
|
||||
@. ./venv/bin/activate && python manage.py test --parallel
|
||||
@. ./venv/bin/activate && python manage.py test --parallel --with-coverage
|
||||
|
|
|
@ -5,6 +5,7 @@ certifi==2022.5.18.1
|
|||
cffi==1.15.0
|
||||
charset-normalizer==2.0.12
|
||||
click==8.0.4
|
||||
coverage==6.4.1
|
||||
cryptography==37.0.2
|
||||
Deprecated==1.2.13
|
||||
Django==4.0.3
|
||||
|
|
Loading…
Reference in New Issue