forked from Mirror/ollama4j
Enhance integration tests and Makefile for external Ollama host support
- Updated the Makefile to include a new target for local integration tests with external Ollama host configuration. - Modified the OllamaAPIIntegrationTest to dynamically set the Ollama host based on environment variables, allowing for both external and Testcontainers usage. - Refactored model pulling logic in tests to use constants for model names, improving readability and maintainability.
This commit is contained in:
5
Makefile
5
Makefile
@@ -16,7 +16,10 @@ unit-tests:
|
||||
mvn clean test -Punit-tests
|
||||
|
||||
integration-tests:
|
||||
mvn clean verify -Pintegration-tests
|
||||
export USE_EXTERNAL_OLLAMA_HOST=false && mvn clean verify -Pintegration-tests
|
||||
|
||||
integration-tests-local:
|
||||
export USE_EXTERNAL_OLLAMA_HOST=true && export OLLAMA_HOST=http://localhost:11434 && mvn clean verify -Pintegration-tests -Dgpg.skip=true
|
||||
|
||||
doxygen:
|
||||
doxygen Doxyfile
|
||||
|
||||
Reference in New Issue
Block a user