File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,17 @@ if [[ "${PYTHON_VERSION}" -lt "30" ]]; then
21
21
fi
22
22
23
23
# Run tests using pytest
24
- # NOTE_dj: not sure about --xunit-file part (not using with pytest for now)
25
24
cd /root/src/nipype/
26
25
make clean
27
26
py.test --doctest-modules --cov-report xml:/scratch/coverage_py${PYTHON_VERSION} .xml --cov=nipype nipype
28
- # nosetests -s nipype -c /root/src/nipype/.noserc --xunit-file="/scratch/nosetests_py${PYTHON_VERSION}.xml" --cover-xml-file="/scratch/coverage_py${PYTHON_VERSION}.xml"
27
+
29
28
30
29
# Workaround: run here the profiler tests in python 3
31
- # NOTE_dj: not sure why this is different for python 3 and 2, is it ok that only python3 part is included in coverage?
32
- # NOTE_dj: I'm not sure about --xunit-file
33
30
if [[ " ${PYTHON_VERSION} " -ge " 30" ]]; then
34
31
echo ' [execution]' >> /root/.nipype/nipype.cfg
35
32
echo ' profile_runtime = true' >> /root/.nipype/nipype.cfg
36
- py.test --cov-report xml:/scratch/coverage_py${PYTHON_VERSION} _profiler.xml --cov=nipype nipype/interfaces/tests/test_runtime_profiler.py # --xunit-file="/scratch/nosetests_py${PYTHON_VERSION}_profiler.xml" --cover-xml-file="/scratch/coverage_py${PYTHON_VERSION}_profiler.xml"
37
- py.test --cov-report xml:/scratch/coverage_py${PYTHON_VERSION} _multiproc.xml --cov=nipype nipype/pipeline/plugins/tests/test_multiproc* .py # --xunit-file="/scratch/nosetests_py${PYTHON_VERSION}_multiproc.xml" --cover-xml-file="/scratch/coverage_py${PYTHON_VERSION}_multiproc.xml"
33
+ py.test --cov-report xml:/scratch/coverage_py${PYTHON_VERSION} _profiler.xml --cov=nipype nipype/interfaces/tests/test_runtime_profiler.py
34
+ py.test --cov-report xml:/scratch/coverage_py${PYTHON_VERSION} _multiproc.xml --cov=nipype nipype/pipeline/plugins/tests/test_multiproc* .py
38
35
fi
39
36
40
37
# Copy crashfiles to scratch
You can’t perform that action at this time.
0 commit comments