Add test make targets
This commit is contained in:
parent
568626c815
commit
34a6823db2
1 changed files with 21 additions and 0 deletions
21
Makefile
Normal file
21
Makefile
Normal 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
|
||||||
|
|
Reference in a new issue