Skip to content

Commit

Permalink
Add new targets to Makefile
Browse files Browse the repository at this point in the history
- Based on capabilities
  • Loading branch information
pehala committed Feb 7, 2024
1 parent 696a10c commit 6ec29a6
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,35 @@ all-is-package:

# pattern to run individual testfile or all testfiles in directory
testsuite/%: FORCE poetry-no-dev
$(PYTEST) --performance --mgc -v $(flags) $@
$(PYTEST) --performance -v $(flags) $@

test: ## Run tests
test: ## Run all non mgc tests
test pytest tests: poetry-no-dev
$(PYTEST) -n4 -m 'not flaky' --dist loadfile $(flags) testsuite
$(PYTEST) -n4 -m 'not mgc' --dist loadfile $(flags) testsuite

authorino: ## Run test
authorino: ## Run only authorino related tests
authorino: poetry-no-dev
$(PYTEST) -n4 -m 'not flaky' --dist loadfile $(flags) testsuite/tests/kuadrant/authorino
$(PYTEST) -n4 -m 'authorino' --dist loadfile --enforce $(flags) testsuite

performance: ## Run performance tests
performance: poetry-no-dev
$(PYTEST) --performance $(flags) testsuite/tests/kuadrant/authorino/performance
authorino-standalone: ## Run only test capable of running with standalone Authorino
authorino-standalone: poetry-no-dev
$(PYTEST) -n4 -m 'authorino and not kuadrant_only' --dist loadfile --enforce $(flags) testsuite/tests/kuadrant/authorino

limitador: ## Run only Limitador related tests
limitador: poetry-no-dev
$(PYTEST) -n4 -m 'limitador' --dist loadfile --enforce $(flags) testsuite

kuadrant: ## Run Kuadrant-only tests
kuadrant: poetry-no-dev
$(PYTEST) -n4 -m 'kuadrant_only' --dist loadfile --enforce $(flags) testsuite

mgc: ## Run mgc tests
mgc: poetry-no-dev
$(PYTEST) --mgc $(flags) testsuite/tests/mgc
$(PYTEST) -m "mgc" --enforce $(flags) testsuite

performance: ## Run performance tests
performance: poetry-no-dev
$(PYTEST) --performance $(flags) testsuite/tests/kuadrant/authorino/performance

poetry.lock: pyproject.toml
poetry lock
Expand Down

0 comments on commit 6ec29a6

Please sign in to comment.