Skip to content

Commit b034d84

Browse files
authored
Merge pull request #886 from KaplanOpenSource/issue881
Issue881
2 parents f7b7491 + 3d7835d commit b034d84

111 files changed

Lines changed: 45974 additions & 18249 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ VENV_DIR ?= $(HOME)/.pyhera/environment
1616

1717
.PHONY: install install-env setup install-docs install-rag populate populate-project \
1818
help mongo-up mongo-down mongo-status mongo-logs mongo-clean \
19-
build run stop test test-setup \
19+
build run stop test test-setup test-ui test-all \
2020
install-deps install-deps-all install-paraview install-freecad install-openfoam \
2121
mermaid-pull render-diagrams render-diagrams-force \
2222
docs-deps docs-build docs-build-strict docs-serve docs-deploy docs-clean \
@@ -115,7 +115,9 @@ help:
115115
@echo ""
116116
@echo " Testing:"
117117
@echo " make test-setup Create the test data directory structure"
118-
@echo " make test Run all tests (requires MongoDB + test data)"
118+
@echo " make test Run Python/pytest suite (requires MongoDB + test data)"
119+
@echo " make test-ui Run UI tests (npm install + npm run test:all in ui/client/)"
120+
@echo " make test-all Run Python tests then UI tests (halts on first failure)"
119121
@echo ""
120122
@echo " Third-party dependencies:"
121123
@echo " make install-deps Install system packages and GDAL Python binding"
@@ -243,7 +245,15 @@ test-setup:
243245
@echo "Add test data files under measurements/ and expected outputs under expected/BASELINE/"
244246

245247
test:
246-
TEST_HERA=$(TEST_HERA) pytest hera/tests/ -v
248+
TEST_HERA=$(TEST_HERA) pytest hera/tests/ -v -m "not notebook"
249+
250+
test-notebooks:
251+
TEST_HERA=$(TEST_HERA) pytest hera/tests/test_notebooks.py -v
252+
253+
test-ui:
254+
cd ui/client && npm install && npm run test:all
255+
256+
test-all: test test-notebooks test-ui
247257

248258
# --- Third-party Dependencies ---
249259

0 commit comments

Comments
 (0)