gempir icon

Untitled

gempir | PRO | 03/10/17 02:47:41 PM UTC | 0 ⭐ | 7707 👁️ | Never ⏰ | []
Make |

380 B

|

None

|

0 👍

/

0 👎

PACKAGES = $(shell find ./ -type d -not -path '*/\.*')
 
build:
    go build
 
install:
    go install
 
test:
    go test $(go list ./... | grep -v /vendor/)
 
cover:
    echo "mode: count" > coverage-all.out
    $(foreach pkg,$(PACKAGES),\
        go test -coverprofile=coverage.out -covermode=count $(pkg);\
        tail -n +2 coverage.out >> coverage-all.out;)
    go tool cover -html=coverage-all.out

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎