Skip to content

Commit

Permalink
chore: Melhora comando de cobertura de testes
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarofpp committed Feb 24, 2024
1 parent b89fd42 commit e95843e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit e95843e

Please sign in to comment.