diff --git a/Makefile b/Makefile index 0f66a90..b526348 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ test: test-coverage: @docker compose run --rm -v ${ROOT}:/app \ --name ${TEST_CONTAINER_NAME} ${APP_NAME} \ - /bin/bash -c "coverage run -m unittest discover tests && coverage report -m" + /bin/bash -c "pytest --cov=validate_docbr/" .PHONY: shell shell: diff --git a/README.md b/README.md index 8c47520..90ab8ae 100644 --- a/README.md +++ b/README.md @@ -164,5 +164,11 @@ cpf.mask(cpf_me) # "012.345.678-90" Para realizar os testes basta executar o seguinte comando: ```shell -coverage run -m unittest discover tests && coverage report -m +make test +``` + +Para verificar a cobertura de testes: + +```shell +make test-coverage ```