Re-generate API, cover changes

This commit is contained in:
Alex Root Junior 2021-12-12 16:52:31 +02:00
parent 92ec44d8d2
commit ff578e68c5
20 changed files with 331 additions and 14 deletions

View file

@ -82,13 +82,16 @@ reformat:
# =================================================================================================
# Tests
# =================================================================================================
.PHONY: test-run-services
test-run-services:
docker-compose -f tests/docker-compose.yml -p aiogram3-dev up -d
.PHONY: test
test:
test: test-run-services
$(py) pytest --cov=aiogram --cov-config .coveragerc tests/ --redis $(redis_connection)
.PHONY: test-coverage
test-coverage:
test-coverage: test-run-services
mkdir -p $(reports_dir)/tests/
$(py) pytest --cov=aiogram --cov-config .coveragerc --html=$(reports_dir)/tests/index.html tests/ --redis $(redis_connection)