Skip to content

Commit

Permalink
Display test names for Python tests for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Sep 27, 2018
1 parent 5a966ea commit f1e526b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/ci_build/test_gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -e
cd python-package
python setup.py install --user
cd ..
python -m nose --attr='!slow' tests/python-gpu/
python -m nose -v --attr='!slow' tests/python-gpu/
./testxgboost

8 changes: 4 additions & 4 deletions tests/travis/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ if [ ${TASK} == "python_test" ]; then
python -m pip install datatable --no-binary datatable

python -m pip install graphviz pytest pytest-cov codecov
python -m nose tests/python || exit -1
python -m nose -v tests/python || exit -1
py.test tests/python --cov=python-package/xgboost
codecov
source activate python2
echo "-------------------------------"
python --version
conda install numpy scipy pandas matplotlib nose scikit-learn
python -m pip install graphviz
python -m nose tests/python || exit -1
python -m nose -v tests/python || exit -1
exit 0
fi

Expand All @@ -75,15 +75,15 @@ if [ ${TASK} == "python_lightweight_test" ]; then
python --version
conda install numpy scipy nose
python -m pip install graphviz pytest pytest-cov codecov
python -m nose tests/python || exit -1
python -m nose -v tests/python || exit -1
py.test tests/python --cov=python-package/xgboost
codecov
source activate python2
echo "-------------------------------"
python --version
conda install numpy scipy nose
python -m pip install graphviz
python -m nose tests/python || exit -1
python -m nose -v tests/python || exit -1
python -m pip install flake8==3.4.1
flake8 --ignore E501 python-package || exit -1
flake8 --ignore E501 tests/python || exit -1
Expand Down

0 comments on commit f1e526b

Please sign in to comment.