Skip to content
Snippets Groups Projects
Commit 63fb5328 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

coverage fixed (cov set to correct directory). Colonel omitted

parent 3b1ef42e
No related branches found
No related tags found
1 merge request!94Handle disabled mpi
[run] [run]
omit = */Colonel/* omit =
\ No newline at end of file */Colonel/*
*/colonel/*
\ No newline at end of file
...@@ -22,7 +22,7 @@ test_topfarm_windows: # name the job what we like ...@@ -22,7 +22,7 @@ test_topfarm_windows: # name the job what we like
test test
script: # runs on windows machine due to tag below script: # runs on windows machine due to tag below
- cd tests - cd tests
- c:/Anaconda3/envs/pyTopfarm/python.exe -m pytest --cov-report term-missing:skip-covered --cov=topfarm - c:/Anaconda3/envs/pyTopfarm/python.exe -m pytest --cov-report term-missing:skip-covered --cov=../topfarm --cov-config ../.coveragerc
tags: # tag for shared runner on windows machine tags: # tag for shared runner on windows machine
- CPAV_old_PC - CPAV_old_PC
......
...@@ -14,6 +14,8 @@ def get_try_me_modules(): ...@@ -14,6 +14,8 @@ def get_try_me_modules():
for _, modname, _ in pkgutil.walk_packages(package.__path__, package.__name__ + '.'): for _, modname, _ in pkgutil.walk_packages(package.__path__, package.__name__ + '.'):
with warnings.catch_warnings(): with warnings.catch_warnings():
warnings.simplefilter("ignore") warnings.simplefilter("ignore")
if 'olonel' in modname:
continue
m = importlib.import_module(modname) m = importlib.import_module(modname)
if 'try_me' in dir(m): if 'try_me' in dir(m):
modules.append(m) modules.append(m)
......
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