From daa5decb8f4b19843a0afe98e76ff4f809a9fd61 Mon Sep 17 00:00:00 2001 From: Joan Antoni RE Date: Wed, 31 Jul 2024 13:32:19 +0200 Subject: [PATCH] Fail fast in CI pytest --- nucliadb/Makefile | 1 + nucliadb_dataset/Makefile | 4 ++-- nucliadb_models/Makefile | 4 ++-- nucliadb_node/Makefile | 4 ++-- nucliadb_node_binding/Makefile | 5 +++-- nucliadb_sdk/Makefile | 4 ++-- nucliadb_sidecar/Makefile | 4 ++-- nucliadb_telemetry/Makefile | 4 ++-- nucliadb_utils/Makefile | 4 ++-- 9 files changed, 18 insertions(+), 16 deletions(-) diff --git a/nucliadb/Makefile b/nucliadb/Makefile index 7651530077..87d1299ad2 100644 --- a/nucliadb/Makefile +++ b/nucliadb/Makefile @@ -47,6 +47,7 @@ test-%: test-cov-%: $(PYTEST) \ + -x \ --cov=nucliadb \ --cov-config=../.coveragerc \ --cov-report xml \ diff --git a/nucliadb_dataset/Makefile b/nucliadb_dataset/Makefile index 1a703cd0ca..446f48ecbb 100644 --- a/nucliadb_dataset/Makefile +++ b/nucliadb_dataset/Makefile @@ -10,8 +10,8 @@ lint: .PHONY: test test: - TEST_LOCAL_NUCLIADB=START pytest -rfE -s --tb=native -v tests + TEST_LOCAL_NUCLIADB=START pytest -rfE -sv --tb=native tests .PHONY: test-cov test-cov: - TEST_LOCAL_NUCLIADB=START pytest -rfE --cov=nucliadb_dataset --cov-config=../.coveragerc -s --tb=native -v --cov-report term-missing:skip-covered --cov-report xml --cov-append tests + TEST_LOCAL_NUCLIADB=START pytest -rfE -sxv --cov=nucliadb_dataset --cov-config=../.coveragerc --tb=native --cov-report term-missing:skip-covered --cov-report xml --cov-append tests diff --git a/nucliadb_models/Makefile b/nucliadb_models/Makefile index 29709a0fba..b20f5c9787 100644 --- a/nucliadb_models/Makefile +++ b/nucliadb_models/Makefile @@ -10,9 +10,9 @@ lint: .PHONY: test test: - pytest -s --tb=native -v tests + pytest -sv --tb=native tests .PHONY: test-cov test-cov: - pytest -rfE --cov=nucliadb_models --cov-config=../.coveragerc -s --tb=native -v --cov-report term-missing:skip-covered --cov-report xml tests + pytest -rfE -sxv --cov=nucliadb_models --cov-config=../.coveragerc --tb=native --cov-report term-missing:skip-covered --cov-report xml tests diff --git a/nucliadb_node/Makefile b/nucliadb_node/Makefile index a32df18e60..dcd4468a23 100644 --- a/nucliadb_node/Makefile +++ b/nucliadb_node/Makefile @@ -15,11 +15,11 @@ lint: .PHONY: test test: - pytest -s --tb=native -v nucliadb_sidecar + pytest -sv --tb=native nucliadb_sidecar .PHONY: test-cov test-cov: - pytest -rfE --cov=nucliadb_sidecar --cov-config=../.coveragerc -s --tb=native -v --cov-report term-missing:skip-covered --cov-report xml nucliadb_sidecar + pytest -rfE -sxv --cov=nucliadb_sidecar --cov-config=../.coveragerc --tb=native --cov-report term-missing:skip-covered --cov-report xml nucliadb_sidecar .PHONY: build build: diff --git a/nucliadb_node_binding/Makefile b/nucliadb_node_binding/Makefile index 39aa4846ca..03c8dfe0b6 100644 --- a/nucliadb_node_binding/Makefile +++ b/nucliadb_node_binding/Makefile @@ -17,7 +17,7 @@ lint: .PHONY: test test: - pytest -s --tb=native -v tests + pytest -sv --tb=native tests # TODO rather complex set up, needs to be done globally .PHONY: install-cov @@ -28,7 +28,8 @@ install-cov: .PHONY: test-cov # test-cov: # bash ./cov.sh -test-cov: test # Without coverage for now, since it's currently broken +test-cov: # Without coverage for now, since it's currently broken + pytest -sxv --tb=native tests .PHONY: build build: diff --git a/nucliadb_sdk/Makefile b/nucliadb_sdk/Makefile index 8a46cd33d6..aba4ec1255 100644 --- a/nucliadb_sdk/Makefile +++ b/nucliadb_sdk/Makefile @@ -10,8 +10,8 @@ lint: .PHONY: test test: - TEST_LOCAL_NUCLIADB=START pytest -rfE -s --tb=native -v tests + TEST_LOCAL_NUCLIADB=START pytest -rfE -sv --tb=native tests .PHONY: test-cov test-cov: - TEST_LOCAL_NUCLIADB=START pytest -rfE --cov=nucliadb_sdk --cov-config=../.coveragerc -s --tb=native -v --cov-report term-missing:skip-covered --cov-report xml tests + TEST_LOCAL_NUCLIADB=START pytest -rfE -sxv --cov=nucliadb_sdk --cov-config=../.coveragerc --tb=native --cov-report term-missing:skip-covered --cov-report xml tests diff --git a/nucliadb_sidecar/Makefile b/nucliadb_sidecar/Makefile index 6be96a74bc..7d6c1dbbc9 100644 --- a/nucliadb_sidecar/Makefile +++ b/nucliadb_sidecar/Makefile @@ -15,11 +15,11 @@ lint: .PHONY: test test: - pytest -s --tb=native -v tests + pytest -sv --tb=native tests .PHONY: test-cov test-cov: - pytest -rfE --cov=nucliadb_sidecar --cov-config=../.coveragerc -s --tb=native -v --cov-report term-missing:skip-covered --cov-report xml tests + pytest -rfE -sxv --cov=nucliadb_sidecar --cov-config=../.coveragerc --tb=native --cov-report term-missing:skip-covered --cov-report xml tests .PHONY: build build: diff --git a/nucliadb_telemetry/Makefile b/nucliadb_telemetry/Makefile index 5c013c9432..5e6f6f8496 100644 --- a/nucliadb_telemetry/Makefile +++ b/nucliadb_telemetry/Makefile @@ -15,8 +15,8 @@ lint: .PHONY: test test: - pytest -s --tb=native -v tests + pytest -sv --tb=native tests .PHONY: test-cov test-cov: - pytest -rfE --cov=nucliadb_telemetry --cov-config=../.coveragerc -s --tb=native -v --cov-report term-missing:skip-covered --cov-report xml tests + pytest -rfE -sxv -cov=nucliadb_telemetry --cov-config=../.coveragerc --tb=native --cov-report term-missing:skip-covered --cov-report xml tests diff --git a/nucliadb_utils/Makefile b/nucliadb_utils/Makefile index 2391ef83bc..20b2377cd0 100644 --- a/nucliadb_utils/Makefile +++ b/nucliadb_utils/Makefile @@ -11,8 +11,8 @@ lint: .PHONY: test test: - pytest -s --tb=native -v tests + pytest -sv --tb=native tests .PHONY: test-cov test-cov: - pytest -rfE --cov=nucliadb_utils --cov-config=../.coveragerc -s --tb=native -v --cov-report term-missing:skip-covered --cov-report xml tests + pytest -rfE -sxv --cov=nucliadb_utils --cov-config=../.coveragerc --tb=native --cov-report term-missing:skip-covered --cov-report xml tests