Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cdstar
pycdstar3
Commits
7763d47c
Commit
7763d47c
authored
Oct 25, 2019
by
mhellka
Browse files
Pytest, coverage and Makefile tweaks
parent
70183438
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
7763d47c
...
@@ -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
setup.cfg
View file @
7763d47c
[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/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment