Last active
August 29, 2015 14:09
-
-
Save memememomo/79a9159874c4ab112ed0 to your computer and use it in GitHub Desktop.
特定のテストのみを走らせる ref: http://qiita.com/uchiko/items/a618eb401fd2c3062ea7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SRC=$(go list -f '{{range .GoFiles}}{{.}} {{end}}') | |
TESTS=$(go list -f '{{range .TestGoFiles}}{{.}} {{end}}') | |
if [ $# -gt 0 ]; then | |
TESTS=$1 | |
fi | |
go test $SRC $TESTS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go test -run Hogehoge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment