mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-21 23:16:49 +00:00
Move test files to testdata dir
This commit is contained in:
1313
testdata/coverage.txt
vendored
Normal file
1313
testdata/coverage.txt
vendored
Normal file
File diff suppressed because it is too large
Load Diff
19
testdata/test.sh
vendored
Executable file
19
testdata/test.sh
vendored
Executable 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
|
||||
Reference in New Issue
Block a user