From 667132f587d735c0320a44e2c21cb705510cae3c Mon Sep 17 00:00:00 2001 From: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com> Date: Mon, 4 Mar 2024 11:49:44 -0500 Subject: [PATCH] add nbval-lax testing target --- {{cookiecutter.project_slug}}/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/Makefile b/{{cookiecutter.project_slug}}/Makefile index b44ea9e5a..62f5f5ace 100644 --- a/{{cookiecutter.project_slug}}/Makefile +++ b/{{cookiecutter.project_slug}}/Makefile @@ -130,7 +130,11 @@ test-tox: ## run tests on every available Python version with tox test-notebooks: notebook-sanitizer ## run notebook-based tests @echo "Running notebook-based tests" - @bash -c "env WPS_URL=$(WPS_URL) pytest --nbval --verbose $(CURDIR)/docs/source/notebooks/ --sanitize-with $(CURDIR)/docs/source/output-sanitize.cfg --ignore $(CURDIR)/docs/source/notebooks/.ipynb_checkpoints" + @bash -c "env WPS_URL=$(WPS_URL) pytest --nbval --rootdir tests/ --verbose $(CURDIR)/docs/source/notebooks/ --sanitize-with $(CURDIR)/docs/source/output-sanitize.cfg --ignore $(CURDIR)/docs/source/notebooks/.ipynb_checkpoints" + +test-notebooks-lax: notebook-sanitizer ## run tests on notebooks but don't be so strict about outputs + @echo "Running notebook-based tests" + @bash -c "env WPS_URL=$(WPS_URL) pytest --nbval-lax --rootdir tests/ --verbose $(CURDIR)/docs/source/notebooks/ --ignore $(CURDIR)/docs/source/notebooks/.ipynb_checkpoints" coverage: ## check code coverage quickly with the default Python {%- if cookiecutter.use_pytest == 'y' %}