Various improvements to unit test running

- units.sh should exit on error.
- Add race detector to unit test runner.
- Use local testing/cover/cover tool in gen_coverage_report.sh and units.sh
- Use the scheduler to parallelise the unit tests.
- Make test run id a string and differentiate between unit runs and integration runs in the scheduler.
- Pipe circle env vars through to build container so we can detect when to use the scheduler
- Add python requests to the weave build container.
- Quote test names in urls, make flask handle url segments with slashes in.
This commit is contained in:
Tom Wilkie committed 2015-07-13 09:33:52 +00:00
1 parent 7aab5cc5b4
commit 13f1239a3e
12 files changed
+82 -33

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
#!/bin/bash
set -ex
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ -n "$CIRCLECI" ]; then
for i in $(seq 1 $(($CIRCLE_NODE_TOTAL - 1))); do
@@ -8,7 +9,7 @@ if [ -n "$CIRCLECI" ]; then
done
fi
go get github.com/weaveworks/weave/testing/cover
$DIR/../testing/cover/cover
cover ./coverage/* >profile.cov
go tool cover -html=profile.cov -o coverage.html
go tool cover -func=profile.cov -o coverage.txt