Gitlab Community Edition Instance

Commit 7763d47c authored by mhellka's avatar mhellka
Browse files

Pytest, coverage and Makefile tweaks

parent 70183438
...@@ -20,8 +20,17 @@ lint: venv ...@@ -20,8 +20,17 @@ lint: venv
test: venv test: venv
venv/bin/tox venv/bin/tox
.coverage: venv
venv/bin/pytest --cov
build/coverage: .coverage
venv/bin/coverage html
push: test lint push: test lint
git diff-index --exit-code HEAD -- # Ensure workdir and index are both clean git diff-index --exit-code HEAD -- # Ensure workdir and index are both clean
git push git push
_PHONY: venv docs dist lint test push _PHONY: venv docs dist lint test push clean
clean:
rm -rf venv .tox
[tool:pytest] [tool:pytest]
markers =
with_server: Requires a CDStar server
addopts = addopts =
--cov --cov
-m "not with_server"
[coverage:run] [coverage:run]
source = source =
...@@ -13,3 +10,6 @@ source = ...@@ -13,3 +10,6 @@ source =
[coverage:report] [coverage:report]
show_missing = true show_missing = true
[coverage:html]
directory = ./build/coverage/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment