forked from Mirror/ollama4j
Refactor integration test targets in Makefile and update workflow
- Renamed integration test targets in the Makefile for clarity: `integration-tests` to `integration-tests-all` and added `integration-tests-basic`. - Updated GitHub Actions workflow to run the new `integration-tests-basic` target. - Cleaned up the `WithAuth` test class by removing unused imports and simplifying method signatures.
This commit is contained in:
10
Makefile
10
Makefile
@@ -26,12 +26,16 @@ unit-tests: apply-formatting
|
||||
@echo "\033[0;34mRunning unit tests...\033[0m"
|
||||
@mvn clean test -Punit-tests
|
||||
|
||||
integration-tests: apply-formatting
|
||||
@echo "\033[0;34mRunning integration tests (local)...\033[0m"
|
||||
integration-tests-all: apply-formatting
|
||||
@echo "\033[0;34mRunning integration tests (local - all)...\033[0m"
|
||||
@export USE_EXTERNAL_OLLAMA_HOST=false && mvn clean verify -Pintegration-tests
|
||||
|
||||
integration-tests-basic: apply-formatting
|
||||
@echo "\033[0;34mRunning integration tests (local - basic)...\033[0m"
|
||||
@export USE_EXTERNAL_OLLAMA_HOST=false && mvn clean verify -Pintegration-tests -Dit.test=WithAuth
|
||||
|
||||
integration-tests-remote: apply-formatting
|
||||
@echo "\033[0;34mRunning integration tests (remote)...\033[0m"
|
||||
@echo "\033[0;34mRunning integration tests (remote - all)...\033[0m"
|
||||
@export USE_EXTERNAL_OLLAMA_HOST=true && export OLLAMA_HOST=http://192.168.29.229:11434 && mvn clean verify -Pintegration-tests -Dgpg.skip=true
|
||||
|
||||
doxygen:
|
||||
|
||||
Reference in New Issue
Block a user