github.com/nkprince007/lab@v0.6.2-0.20171218071646-19d68b56f403/Makefile (about)

     1  test:
     2  	  bash -c "trap 'trap - SIGINT SIGTERM ERR; mv testdata/.git testdata/test.git; exit 1' SIGINT SIGTERM ERR; $(MAKE) internal-test"
     3  
     4  internal-test:
     5  	rm coverage-* 2>&1 > /dev/null || true
     6  	mv testdata/test.git testdata/.git
     7  	go test -coverprofile=coverage-git.out -covermode=count github.com/zaquestion/lab/internal/git
     8  	go test -coverprofile=coverage-gitlab.out -covermode=count github.com/zaquestion/lab/internal/gitlab
     9  	go test -coverprofile=coverage-cmd.out -covermode=count -coverpkg ./... github.com/zaquestion/lab/cmd
    10  	mv testdata/.git testdata/test.git
    11  	go get github.com/wadey/gocovmerge
    12  	gocovmerge coverage-*.out > coverage.txt && rm coverage-*.out