From e95843e13ed97b14d6a5ad2d0712dfc936da0121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Paiva?= Date: Sat, 24 Feb 2024 20:25:43 -0300 Subject: [PATCH] chore: Melhora comando de cobertura de testes --- Makefile | 2 +- README.md | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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 ```