-
Notifications
You must be signed in to change notification settings - Fork 0
[RFC] Add a "go-unit-tests" hook #3
Copy link
Copy link
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Adding this RFC on behalf of @jduclos-bellese - we'd like to get feedback about whether we could add a go-unit-tests hook to this project. We could implement the hook similar to the go-unit-tests hook found in dnephin/pre-commit-golang, which executes a bash script like this:
#!/usr/bin/env bash
FILES=$(go list ./... | grep -v /vendor/)
go test -tags=unit -timeout 30s -short -v ${FILES}
returncode=$?
if [ $returncode -ne 0 ]; then
echo "unit tests failed"
exit 1
fiReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested