From 50992a1e09ae1af91a86848f20559b844cb8fa74 Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Fri, 3 Nov 2023 16:54:57 -0700 Subject: [PATCH] Makefile updates --- Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a0dc3152bd..e70cbb94ea 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,13 @@ # # Controls the number of parallel workers running tests. Try "make -e PARALLELISM=4 test". -PARALLELISM = "auto" +PARALLELISM = auto # Additional command line options to pass to pytest. -ADDITIONAL_PYTEST_OPTIONS = "" +ADDITIONAL_PYTEST_OPTIONS = # Pytest that can populate the persistent source schema -USE_PERSISTENT_SOURCE_SCHEMA = "--use-persistent-source-schema" -POPULATE_PERSISTENT_SOURCE_SCHEMA = "metricflow/test/source_schema_tools.py::populate_source_schema" +USE_PERSISTENT_SOURCE_SCHEMA = --use-persistent-source-schema +POPULATE_PERSISTENT_SOURCE_SCHEMA = metricflow/test/source_schema_tools.py::populate_source_schema # Install Hatch package / project manager .PHONY: install-hatch @@ -73,3 +73,8 @@ postgresql postgres: .PHONY: regenerate-test-snapshots regenerate-test-snapshots: hatch -v run dev-env:python metricflow/test/generate_snapshots.py + +# Re-generate snapshots for the default SQL engine. +.PHONY: test-snap +test-snap: + make test ADDITIONAL_PYTEST_OPTIONS=--overwrite-snapshots \ No newline at end of file