https://github.com/GPflow/GPflow
Revision 0741f86561249b49db3f6cf6068d21d95c8d9330 authored by Artem Artemev on 20 November 2017, 14:48:53 UTC, committed by Mark van der Wilk on 20 November 2017, 14:48:53 UTC
* Add a bunch of test for Parameter and DataHolder. Minibatch seed can be changed after cleaning or in defer_build. * Add dataholder tests. * Add failure creation tests to data holders. * Shape and dtype for dataholders work for external tensors. * According fix in dataholder test. * Change travis file. * Experiments with travis. * Improvements in Parameterized tests. * Exclude external optimizer from coverage report. * Improvements in optimizer tests. * Indent functions in optimizer's tests. * Increase coverage in Parameterized. * Increase codecov for Parameterized. * Developing test coverage further. * Tests Parameterized feeds. * Call parameter size in tests. * 100% for ParamList. * Minibatch tests. * Increase coverage for Minibatch. * Setup.py clean up. Stick to 1.4 tensorflow version. Remove backwards for py2.7. * Increase coverage for Parameters. * Increase coverage for Parameters build check. * Core tests for TensorConverter. * Code coverage targets.
1 parent f42fc3e
Tip revision: 0741f86561249b49db3f6cf6068d21d95c8d9330 authored by Artem Artemev on 20 November 2017, 14:48:53 UTC
Increase test coverage. (#565)
Increase test coverage. (#565)
Tip revision: 0741f86
run_tests.sh
#!/bin/bash
# Script for running GPflow tests in sequential and parallel modes.
# Running tensorflow based tests in distinct processes prevents
# bad memory accumulations which can lead to crashes or slow runs
# on resource limited hardware.
# Written by Artem Artemev, 06/08/2017
set -e
mode=${1:-"--sequential"}
case "$mode" in
-p|--parallel)
numproc=$([[ $(uname) == 'Darwin' ]] && sysctl -n hw.physicalcpu_max || nproc)
echo ">>> Parallel mode. Number of processes = $numproc"
echo testing/test_*.py | xargs -n 1 -P "$numproc" bash -c 'nosetests -v --nologcapture $0 || exit 255'
;;
-s|--sequential)
for test_file in testing/test_*.py; do
echo ">>> Run $test_file"
nosetests -v --nologcapture "$test_file"
rc=$?
if [ "$rc" != "0" ]; then
echo ">>> $test_file failed"
exit $rc
fi
done
;;
*)
;;
esac
Computing file changes ...