diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index aaf01cd3280..e79741bbe6c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,12 @@ grunt && grunt watch grunt karma:dev ``` -### Run tests before commit +### Run tests for backend assets before commit +``` +test -z "$(gofmt -s -l . | grep -v Godeps/_workspace/src/ | tee /dev/stderr)" +``` + +### Run tests for frontend assets before commit ``` grunt test godep go test -v ./pkg/...