mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Makefile updated
This commit is contained in:
parent
90b55e39dd
commit
e910e04755
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
|
@ -8,6 +8,7 @@ code_dir := $(package_dir) $(tests_dir) $(scripts_dir) $(examples_dir)
|
|||
reports_dir := reports
|
||||
|
||||
redis_connection := redis://localhost:6379
|
||||
mongo_connection := mongodb://mongo:mongo@localhost:27017
|
||||
|
||||
# =================================================================================================
|
||||
# Environment
|
||||
|
|
@ -50,12 +51,12 @@ test-run-services:
|
|||
|
||||
.PHONY: test
|
||||
test: test-run-services
|
||||
pytest --cov=aiogram --cov-config .coveragerc tests/ --redis $(redis_connection)
|
||||
pytest --cov=aiogram --cov-config .coveragerc tests/ --redis $(redis_connection) --mongo $(mongo_connection)
|
||||
|
||||
.PHONY: test-coverage
|
||||
test-coverage: test-run-services
|
||||
mkdir -p $(reports_dir)/tests/
|
||||
pytest --cov=aiogram --cov-config .coveragerc --html=$(reports_dir)/tests/index.html tests/ --redis $(redis_connection)
|
||||
pytest --cov=aiogram --cov-config .coveragerc --html=$(reports_dir)/tests/index.html tests/ --redis $(redis_connection) --mongo $(mongo_connection)
|
||||
coverage html -d $(reports_dir)/coverage
|
||||
|
||||
.PHONY: test-coverage-view
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue