mirror of
https://github.com/containers/ramalama.git
synced 2026-02-05 06:46:39 +01:00
Reuse code for unit test execution rules
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
This commit is contained in:
5
Makefile
5
Makefile
@@ -9,6 +9,7 @@ DESTDIR ?= /
|
||||
PATH := $(PATH):$(HOME)/.local/bin
|
||||
IMAGE ?= ramalama
|
||||
PYTHON_FILES := $(shell find . -path "./.venv" -prune -o -name "*.py" -print) $(shell find . -name ".venv" -prune -o -type f -perm +111 -exec grep -l "^\#!/usr/bin/env python3" {} \; 2>/dev/null || true)
|
||||
PYTEST_COMMON_CMD ?= PYTHONPATH=. pytest test/unit/ -vv
|
||||
|
||||
default: help
|
||||
|
||||
@@ -166,11 +167,11 @@ ci:
|
||||
|
||||
.PHONY: unit-tests
|
||||
unit-tests:
|
||||
PYTHONPATH=. pytest test/unit/ -vv
|
||||
$(PYTEST_COMMON_CMD)
|
||||
|
||||
.PHONY: unit-tests-verbose
|
||||
unit-tests-verbose:
|
||||
PYTHONPATH=. pytest test/unit/ -vv --full-trace --capture=tee-sys
|
||||
$(PYTEST_COMMON_CMD) --full-trace --capture=tee-sys
|
||||
|
||||
.PHONY: cov-run
|
||||
cov-run: install-cov-requirements
|
||||
|
||||
Reference in New Issue
Block a user