tools(make): open html coverage with xdg-open
This commit is contained in:
@@ -15,6 +15,7 @@ COVERAGE ?= $(UV) run --active coverage
|
|||||||
DOCKER ?= docker
|
DOCKER ?= docker
|
||||||
DOCKER_TAG ?= localhost/stapler:latest
|
DOCKER_TAG ?= localhost/stapler:latest
|
||||||
PORT ?= 8080
|
PORT ?= 8080
|
||||||
|
OPEN ?= xdg-open
|
||||||
|
|
||||||
# DOCS
|
# DOCS
|
||||||
|
|
||||||
@@ -116,6 +117,7 @@ coverage-report: .venv ## coverage report
|
|||||||
.PHONY: coverage-html
|
.PHONY: coverage-html
|
||||||
coverage-html: .venv ## coverage html
|
coverage-html: .venv ## coverage html
|
||||||
@$(COVERAGE) html
|
@$(COVERAGE) html
|
||||||
|
@$(OPEN) htmlcov/index.html || true
|
||||||
|
|
||||||
.PHONY: coverage-xml
|
.PHONY: coverage-xml
|
||||||
coverage-xml: .venv ## coverage xml
|
coverage-xml: .venv ## coverage xml
|
||||||
|
|||||||
Reference in New Issue
Block a user