From 2e9fd4edf1d387e811158b93b0dee3d4e642f399 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Thu, 5 Dec 2024 12:49:52 +0000 Subject: [PATCH] Remove pytest durations from tests (#309) Even though the --durations flag can be very helpful in debugging and troubleshooting test durations, to have it in a permanent basis adds overhead to the tests and obfuscates us seeing more relevant data, such as coverage report. --- scripts/test/integration.sh | 1 - scripts/test/unit-cov.sh | 1 - scripts/test/unit.sh | 1 - 3 files changed, 3 deletions(-) diff --git a/scripts/test/integration.sh b/scripts/test/integration.sh index 3ade2246..34bebf58 100644 --- a/scripts/test/integration.sh +++ b/scripts/test/integration.sh @@ -16,5 +16,4 @@ pytest -vv \ --cov=dagfactory \ --cov-report=term-missing \ --cov-report=xml \ - --durations=0 \ -m integration diff --git a/scripts/test/unit-cov.sh b/scripts/test/unit-cov.sh index b17eee97..b47eab37 100644 --- a/scripts/test/unit-cov.sh +++ b/scripts/test/unit-cov.sh @@ -3,5 +3,4 @@ pytest \ --cov=dagfactory \ --cov-report=term-missing \ --cov-report=xml \ - --durations=0 \ --ignore=tests/test_example_dags.py diff --git a/scripts/test/unit.sh b/scripts/test/unit.sh index 14089a5d..14c676a3 100644 --- a/scripts/test/unit.sh +++ b/scripts/test/unit.sh @@ -1,4 +1,3 @@ pytest \ -vv \ - --durations=0 \ --ignore=tests/test_example_dags.py