I want to test files in all other paths except the static
path.
I had checked the information,can pass go test -run
,but I have been try to fail
Below is my project path structure
api/...
common/...
static/... //except this
...
I want to test files in all other paths except the static
path.
I had checked the information,can pass go test -run
,but I have been try to fail
Below is my project path structure
api/...
common/...
static/... //except this
...
You can use this command to exclude a specific folder:
find ./ -type d ! -path "./static*" ! -path "./.git*" -exec go test -v "{}" \;