From fbf744a008905d0f9c00f8412988810a7a84cba8 Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Mon, 6 Nov 2023 11:11:49 -0800 Subject: [PATCH] `Makefile` updates (#844) 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