test(coverage): Add Codecov (#2719)

This commit is contained in:
Pepe Fagoaga
2023-08-14 21:08:45 +02:00
committed by GitHub
parent 54137be92b
commit 2298d5356d
5 changed files with 44 additions and 6 deletions

View File

@@ -2,12 +2,20 @@
##@ Testing
test: ## Test with pytest
pytest -n auto -vvv -s -x
pytest -n auto -vvv -s -x
rm -rf .coverage && \
rm -rf ./htmlcov && \
pytest -n auto --cov=./prowler --cov-report=xml tests
coverage: ## Show Test Coverage
coverage run --skip-covered -m pytest -v && \
coverage report -m && \
rm -rf .coverage
coverage run --skip-covered -m pytest -v && \
coverage report -m && \
rm -rf .coverage
coverage report -m
coverage-html: ## Show Test Coverage
coverage html && \
open htmlcov/index.html
##@ Linting
format: ## Format Code