diff --git a/.gitignore b/.gitignore index a0aef9b..bed8b36 100644 --- a/.gitignore +++ b/.gitignore @@ -29,9 +29,13 @@ config.yml bin/* .DS_Store coverage.txt +coverage.xml +report.xml gorush/log/*.log build.tar.gz gorush.tar.gz gorush.db vendor +lint.txt +vet.txt Dockerfile.tmp diff --git a/go.test.sh b/go.test.sh index b5bbe28..eae93e0 100755 --- a/go.test.sh +++ b/go.test.sh @@ -17,7 +17,7 @@ test -z $(which glide) && output "glide command not found" test -f coverage.txt && rm -rf coverage.txt echo "mode: ${coverage_mode}" > coverage.txt -for d in ./storage/boltdb/... ./storage/redis/... ./storage/memory/... ./config/... ./gorush/...; do +for d in $(go list ./... | grep -v vendor); do go test -v -cover -coverprofile=profile.out -covermode=${coverage_mode} $d if [ -f profile.out ]; then sed '1d' profile.out >> coverage.txt