Skip to content
Snippets Groups Projects
Commit e9312e35 authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

report for all tests now working!

parent fb98ef92
No related branches found
No related tags found
No related merge requests found
Pipeline #62573 passed
...@@ -21,7 +21,6 @@ build-from-ubuntu: ...@@ -21,7 +21,6 @@ build-from-ubuntu:
- pip3 install -r requirements-dev.txt - pip3 install -r requirements-dev.txt
- py.test test/test_install/test_make_ubuntu.py -xv - py.test test/test_install/test_make_ubuntu.py -xv
build-from-barrnap: build-from-barrnap:
image: registry-gitlab.pasteur.fr/aperrin/pipeline_annotation/install-ubuntu-barrnaponly image: registry-gitlab.pasteur.fr/aperrin/pipeline_annotation/install-ubuntu-barrnaponly
stage: build stage: build
...@@ -32,7 +31,6 @@ build-from-barrnap: ...@@ -32,7 +31,6 @@ build-from-barrnap:
- pip3 install -r requirements-dev.txt - pip3 install -r requirements-dev.txt
- py.test test/test_install/test_make_barrnap.py -xv - py.test test/test_install/test_make_barrnap.py -xv
build-from-prokka-quicktree: build-from-prokka-quicktree:
image: registry-gitlab.pasteur.fr/aperrin/pipeline_annotation/install-ubuntu-annote-quicktree image: registry-gitlab.pasteur.fr/aperrin/pipeline_annotation/install-ubuntu-annote-quicktree
stage: build stage: build
...@@ -43,7 +41,6 @@ build-from-prokka-quicktree: ...@@ -43,7 +41,6 @@ build-from-prokka-quicktree:
- pip3 install -r requirements-dev.txt - pip3 install -r requirements-dev.txt
- py.test test/test_install/test_make_prokka-quicktree.py -xv - py.test test/test_install/test_make_prokka-quicktree.py -xv
build-from-prodigal: build-from-prodigal:
image: registry-gitlab.pasteur.fr/aperrin/pipeline_annotation/install-prodigal image: registry-gitlab.pasteur.fr/aperrin/pipeline_annotation/install-prodigal
stage: build stage: build
...@@ -54,7 +51,6 @@ build-from-prodigal: ...@@ -54,7 +51,6 @@ build-from-prodigal:
- pip3 install -r requirements-dev.txt - pip3 install -r requirements-dev.txt
- py.test test/test_install/test_make_prodigal.py -xv - py.test test/test_install/test_make_prodigal.py -xv
build-from-test-image: build-from-test-image:
stage: build stage: build
only: only:
...@@ -64,6 +60,7 @@ build-from-test-image: ...@@ -64,6 +60,7 @@ build-from-test-image:
- pip3 install -r requirements-dev.txt - pip3 install -r requirements-dev.txt
- py.test test/test_install/test_make_all-installed.py -xv - py.test test/test_install/test_make_all-installed.py -xv
unit-test-ubuntu: unit-test-ubuntu:
stage: test stage: test
except: except:
...@@ -87,7 +84,7 @@ unit-test-ubuntu: ...@@ -87,7 +84,7 @@ unit-test-ubuntu:
- py.test test/test_unit/test_annotate/test_format* -v -x - py.test test/test_unit/test_annotate/test_format* -v -x
- py.test test/test_unit/test_pangenome -vx - py.test test/test_unit/test_pangenome -vx
- py.test test/test_unit/test_corepers -vx - py.test test/test_unit/test_corepers -vx
# - py.test test/test_unit/test_align -vx - py.test test/test_unit/test_align -vx
- py.test test/test_unit/test_tree -xv - py.test test/test_unit/test_tree -xv
- coverage report - coverage report
- mv .coverage .coverage.unit - mv .coverage .coverage.unit
...@@ -108,17 +105,16 @@ func-test-ubuntu: ...@@ -108,17 +105,16 @@ func-test-ubuntu:
- ./make - ./make
script: script:
- pwd - pwd
# - py.test test/test_functional/test_pangenome.py -vx - py.test test/test_functional/test_pangenome.py -vx
# - py.test test/test_functional/test_pangenome-parser.py -vx - py.test test/test_functional/test_pangenome-parser.py -vx
# - py.test test/test_functional/test_corepers* -vx - py.test test/test_functional/test_corepers* -vx
# - py.test test/test_functional/test_align-parser.py -vx - py.test test/test_functional/test_align-parser.py -vx
# - py.test test/test_functional/test_align.py -vx - py.test test/test_functional/test_align.py -vx
# - py.test test/test_functional/test_tree* -vx - py.test test/test_functional/test_tree* -vx
# - py.test test/test_functional/test_annote-parser.py -vx - py.test test/test_functional/test_annote-parser.py -vx
# - py.test test/test_functional/test_annote.py -xv - py.test test/test_functional/test_annote.py -xv
# - py.test test/test_functional/test_all* -vx - py.test test/test_functional/test_all* -vx
# - py.test test/test_functional/test_prepare* -vx - py.test test/test_functional/test_prepare* -vx
- py.test test/test_unit/test_align -vx
- coverage report - coverage report
- mv .coverage .coverage.functional - mv .coverage .coverage.functional
artifacts: artifacts:
...@@ -127,6 +123,7 @@ func-test-ubuntu: ...@@ -127,6 +123,7 @@ func-test-ubuntu:
- htmlcov/index.html - htmlcov/index.html
expire_in: 1 hour expire_in: 1 hour
coverage: coverage:
stage: coverage stage: coverage
except: except:
...@@ -142,8 +139,8 @@ coverage: ...@@ -142,8 +139,8 @@ coverage:
script: script:
- pwd - pwd
- coverage combine .coverage.unit .coverage.functional - coverage combine .coverage.unit .coverage.functional
- coverage report -i - coverage report
- coverage html -i - coverage html
# test coverage parsing: \d+\%\s*$ # test coverage parsing: \d+\%\s*$
# or pytest-cov (Python): ^TOTAL.+?(\d+\%)$ # or pytest-cov (Python): ^TOTAL.+?(\d+\%)$
artifacts: artifacts:
......
...@@ -20,9 +20,12 @@ exclude_lines = ...@@ -20,9 +20,12 @@ exclude_lines =
pragma: no cover pragma: no cover
[coverage:run] [coverage:run]
# use relative paths in .coverage generated file.
# Useful when .coverage is used to generate a report from a different directory than the one it was generated
# (like, for gitlab-ci tests).
# see https://github.com/nedbat/coveragepy/issues/597
relative_files = True relative_files = True
[build_sphinx] [build_sphinx]
source-dir = doc_sources/ source-dir = doc_sources/
build-dir = doc/ build-dir = doc/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment