Move test files to testdata dir

This commit is contained in:
Adrian Gallagher
2017-08-22 10:26:13 +10:00
parent 57f49d5b35
commit 39548b23b9
4 changed files with 14 additions and 4 deletions

1313
testdata/coverage.txt vendored Normal file

File diff suppressed because it is too large Load Diff

19
testdata/test.sh vendored Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
if [ -n "$TRAVIS_BUILD_DIR" ]; then
cd $TRAVIS_BUILD_DIR
else
cd $GOPATH/src/github.com/thrasher-/gocryptotrader
fi
echo "" > testdata/coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic -cover $d
if [ -f profile.out ]; then
cat profile.out >> testdata/coverage.txt
rm profile.out
fi
done