Skip to content

Commit

Permalink
chore: add test coverage commands (#112)
Browse files Browse the repository at this point in the history
Co-authored-by: SemyonSinchenko <[email protected]>
  • Loading branch information
fpgmaas and SemyonSinchenko authored Jul 17, 2024
1 parent b4a98b7 commit 36b92f3
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 2 deletions.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ install: ## Install the Poetry environment
.PHONY: test
test: ## Run unit tests
@echo "Running unit tests"
@poetry run pytest tests
@poetry run pytest tests --cov=chispa --cov-report=term

.PHONY: test-cov-html
test-cov-html: ## Run unit tests and create a coverage report
@echo "Running unit tests and generating HTML report"
@poetry run pytest tests --cov=chispa --cov-report=html

.PHONY: test-cov-xml
test-cov-xml: ## Run unit tests and create a coverage report in xml format
@echo "Running unit tests and generating XML report"
@poetry run pytest tests --cov=chispa --cov-report=xml

.PHONY: build
build: clean-build ## Build wheel and sdist files using Poetry
Expand Down
87 changes: 86 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pytest = "7.4.2"
pyspark = ">3.0.0"
findspark = "1.4.2"
pytest-describe = "^2.1.0"
pytest-cov = "^5.0.0"

[tool.poetry.group.mkdocs.dependencies]
mkdocs = "^1.6.0"
Expand Down

0 comments on commit 36b92f3

Please sign in to comment.