Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
gracedb-client
Commits
ee4a2b95
Verified
Commit
ee4a2b95
authored
Aug 26, 2019
by
Tanner Prestegard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add and configure coverage report for tests
parent
5d8c35c1
Pipeline
#78228
passed with stages
in 3 minutes and 46 seconds
Changes
4
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
setup.cfg
setup.cfg
+8
-0
setup.py
setup.py
+2
-0
No files found.
.gitignore
View file @
ee4a2b95
...
...
@@ -5,6 +5,7 @@ MANIFEST
build
dist
install.sh
.coverage
.eggs
.tox
.venv
.gitlab-ci.yml
View file @
ee4a2b95
...
...
@@ -77,7 +77,7 @@ build:debian:stretch:
stage
:
test
image
:
python
script
:
-
python setup.py test
-
python setup.py test
--addopts "--cov ligo/gracedb"
test:python2.7:
<<
:
*test
...
...
setup.cfg
View file @
ee4a2b95
...
...
@@ -7,6 +7,14 @@ markers =
cli: tests related to the command-line interface
integration: integration tests, connection to a GraceDB server required
[coverage:run]
omit =
ligo/gracedb/legacy_cli.py
ligo/gracedb/version.py
*/test/*
*/tests/*
*/conftest.py
[flake8]
ignore = E129, W503
exclude =
...
...
setup.py
View file @
ee4a2b95
...
...
@@ -41,6 +41,8 @@ pytest_requirement = 'pytest>=3.1.0'
if
sys
.
version_info
<
(
3
,
5
):
pytest_requirement
+=
',<5.0.0'
tests_require
.
append
(
pytest_requirement
)
tests_require
.
append
(
'pytest-cov'
)
# Add mock for Python 2
if
sys
.
version_info
.
major
<
3
:
tests_require
.
append
(
'mock>=2.0.0'
)
...
...
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