Skip to content

Commit

Permalink
Simplify test commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Stein Fletcher committed Nov 16, 2019
1 parent 5e28553 commit 0bfabaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install:
- hugo version

script:
- make test-all
- make test

before_deploy: cd docs && hugo && cd ..

Expand Down
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
.PHONY: test test-examples docs fmt vet

test:
bash -c 'diff -u <(echo -n) <(gofmt -s -d ./)'
bash -c 'diff -u <(echo -n) <(go vet ./...)'
go test ./... -v -covermode=atomic -coverprofile=coverage.out

test-examples:
cd examples && go test -v ./... && \
cd sequence-diagrams-with-sqlite-database && make test && cd ..

fmt:
bash -c 'diff -u <(echo -n) <(gofmt -s -d ./)'

vet:
bash -c 'diff -u <(echo -n) <(go vet ./...)'

test-all: fmt vet test

docs:
cd docs && hugo server -w && cd -
1 change: 0 additions & 1 deletion apitest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ func TestApiTest_MatchesBodyFromFile(t *testing.T) {
End()
}


func TestApiTest_MatchesJSONResponseBodyWithWhitespace(t *testing.T) {
handler := http.NewServeMux()
handler.HandleFunc("/hello", func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 0bfabaa

Please sign in to comment.