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
test: venv
venv/bin/tox
.coverage: venv
venv/bin/pytest --cov
build/coverage: .coverage
venv/bin/coverage html
push: test lint
git diff-index --exit-code HEAD -- # Ensure workdir and index are both clean
git push
_PHONY: venv docs dist lint test push
_PHONY: venv docs dist lint test push clean
clean:
rm -rf venv .tox
[tool:pytest]
markers =
with_server: Requires a CDStar server
addopts =
--cov
-m "not with_server"
[coverage:run]
source =
......@@ -13,3 +10,6 @@ source =
[coverage:report]
show_missing = true
[coverage:html]
directory = ./build/coverage/
Supports Markdown
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