Add test make targets

This commit is contained in:
Marius Orcsik 2018-04-11 21:03:41 +02:00
parent 568626c815
commit 34a6823db2
No known key found for this signature in database
GPG key ID: C36D1EBE93A6EEAE

21
Makefile Normal file
View file

@ -0,0 +1,21 @@
TEST := go test
TEST_FLAGS := -v
TEST_TARGET := ./...
export GOPATH += $$GOPATH:$(shell pwd)
test:
$(TEST) $(TEST_FLAGS) $(TEST_TARGET)
activitypub.coverprofile: TEST_TARGET := activitypub
activitypub.coverprofile: TEST_FLAGS += -covermode=count -coverprofile=$(TEST_TARGET).coverprofile
activitypub.coverprofile: test
activitypub.coverprofile: TEST_TARGET := jsonld
activitypub.coverprofile: TEST_FLAGS += -covermode=count -coverprofile=$(TEST_TARGET).coverprofile
activitypub.coverprofile: test
clean:
$(RM) -v *.coverprofile