From 64371e4e86f919f5cf78e1409e05ca9c7b741c5b Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 6 Nov 2018 16:17:49 +0100 Subject: [PATCH] Add codecov badge and remove -race from test-coverage target #58 --- Makefile | 8 ++++++-- README.md | 6 ++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e72940e18..372370eb0 100644 --- a/Makefile +++ b/Makefile @@ -37,9 +37,13 @@ start: migrate: $(GORUN) cmd/photoprism/photoprism.go migrate test: - $(GOTEST) -timeout 30m -v ./internal/... + $(GOTEST) -timeout 20m -v ./internal/... +test-race: + $(GOTEST) -race -timeout 60m -v ./internal/... test-coverage: - $(GOTEST) -timeout 30m -race -coverprofile=coverage.txt -covermode=atomic -v ./internal/... + $(GOTEST) -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/... +test-coverage-html: + $(GOTEST) -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/... $(GOTOOL) cover -html=coverage.txt -o coverage.html clean: $(GOCLEAN) diff --git a/README.md b/README.md index ae8e3fb2e..4db71292d 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,14 @@ PhotoPrism: Browse your life in pictures ======================================== [![Apache License](https://img.shields.io/badge/license-apache-blue.svg)][license] -[![Code Quality](https://goreportcard.com/badge/github.com/photoprism/photoprism)][code quality] +[![Code Quality](https://goreportcard.com/badge/github.com/photoprism/photoprism)][quality] +[![Test Coverage](https://codecov.io/gh/photoprism/photoprism/branch/develop/graph/badge.svg)][coverage] [![Build Status](https://travis-ci.org/photoprism/photoprism.png?branch=develop)][ci] [![Documentation](https://readthedocs.org/projects/photoprism-docs/badge/?version=latest&style=flat)][docs] [license]: https://github.com/photoprism/photoprism/blob/develop/LICENSE -[code quality]: https://goreportcard.com/report/github.com/photoprism/photoprism +[quality]: https://goreportcard.com/report/github.com/photoprism/photoprism +[coverage]: https://codecov.io/gh/photoprism/photoprism [ci]: https://travis-ci.org/photoprism/photoprism [docs]: https://docs.photoprism.org/en/latest/