Skip to content

Commit 7b67911

Browse files
committed
fix error in run_pytests, trying to get coverage to track examples
1 parent 1357579 commit 7b67911

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.coveragerc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
[run]
22
branch = True
33
data_file = .coverage
4-
source = nipype/
4+
source = .
55
omit =
6-
external/*
7-
fixes/*
6+
nipype/external/*
7+
nipype/fixes/*
8+
tools/*
89
*/tests/*
10+
include =
11+
tools/run_exaples.py
912

1013
[report]
1114
exclude_lines =

docker/files/run_pytests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ if [[ "${PYTHON_VERSION}" -ge "30" ]]; then
3131
echo 'profile_runtime = true' >> ${HOME}/.nipype/nipype.cfg
3232
py.test -n ${CIRCLE_NCPUS:-1} -v --junitxml=${WORKDIR}/pytests_py${PYTHON_VERSION}_profiler.xml --cov-report xml:${WORKDIR}/coverage_py${PYTHON_VERSION}_profiler.xml /src/nipype/nipype/interfaces/tests/test_runtime_profiler.py && \
3333
py.test -n ${CIRCLE_NCPUS:-1} -v --junitxml=${WORKDIR}/pytests_py${PYTHON_VERSION}_multiproc.xml --cov-report xml:${WORKDIR}/coverage_py${PYTHON_VERSION}_multiproc.xml /src/nipype/nipype/pipeline/plugins/tests/test_multiproc*.py
34-
exit_code = $(( $exit_code + $?))
34+
exit_code=$(( $exit_code + $?))
3535
fi
3636

3737
find /src/nipype/ -name "crash-*" -exec mv {} ${WORKDIR}/crashfiles/ \;
3838

3939
# Just in case output xml files are misplaced,
4040
# then circle would not tell the tests failed otherwise
41-
exit $exit_code
41+
exit ${exit_code}

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[pytest]
2-
norecursedirs = .git build dist doc nipype/external tools examples tools
2+
norecursedirs = .git build dist doc nipype/external tools examples tools src
33
addopts = --doctest-modules

0 commit comments

Comments
 (0)