diff --git a/.gitignore b/.gitignore index d19c7c3..5fff46e 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,4 @@ examples/ .idea out.tar.gz +tests-results/ diff --git a/Makefile b/Makefile index 374a342..23d2e46 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,15 @@ generate-example-tests: ## Convert examples.http to test.hurl, e.g. make generate-example-tests affiliations-tools > affiliations-tools/tests.hurl @./bin/generate-example-tests.mjs $(filter-out $@,$(MAKECMDGOALS)) > $(filter-out $@,$(MAKECMDGOALS))/tests.hurl +test: ## Launch tests for a directory, e.g. make test mapping-tools + @hurl --test "$(filter-out $@,$(MAKECMDGOALS))/tests.hurl" + +test-all: ## Launch tests for all directories, e.g. make test-all + @hurl --test */tests.hurl + +test-report-all: ## Launch tests for all directories, e.g. make test-report-all + @hurl --test */tests.hurl --report-html tests-results + # Remove error message about lacking rules for targets' parameters %: @: