Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
8348934
Build/Test Tools: Add live AI provider tests for the core abilities.
jorgefilipecosta Nov 16, 2026
fdcfa19
Build/Test Tools: Add the ticket number to the live AI provider tests.
jorgefilipecosta Nov 16, 2026
a396057
Build/Test Tools: Skip the live AI provider tests only when the provi…
jorgefilipecosta Nov 16, 2026
c28ea0b
Build/Test Tools: Use key names of their own in the live AI provider …
jorgefilipecosta Nov 16, 2026
fc8333b
Build/Test Tools: Fix the request limit, the model check and the answ…
jorgefilipecosta Nov 16, 2026
ddc4861
Build/Test Tools: Simplify the live AI provider tests and read their …
jorgefilipecosta Nov 16, 2026
f94fd86
Build/Test Tools: Tidy the live AI provider tests and document their …
jorgefilipecosta Nov 16, 2026
4703a4b
Build/Test Tools: Move the live AI provider tests out of the test sui…
jorgefilipecosta Nov 26, 2026
993e6b6
Build/Test Tools: Find the AI provider packages when PHPUnit runs fro…
jorgefilipecosta Nov 27, 2026
e2fb6f6
Build/Test Tools: Fail the live AI provider tests when an ability ret…
jorgefilipecosta Nov 27, 2026
bdf03d7
Build/Test Tools: Ask for the name of the queried user in the live AI…
jorgefilipecosta Nov 27, 2026
12fedc7
Build/Test Tools: Load only the AI provider packages when PHPUnit run…
jorgefilipecosta Nov 27, 2026
527ae04
Build/Test Tools: Update the Google and OpenAI providers of the live …
jorgefilipecosta Nov 27, 2026
d76ee21
Build/Test Tools: Simplify the live AI provider tests and read their …
jorgefilipecosta Nov 27, 2026
db74ff5
Build/Test Tools: Tidy the live AI provider tests and document them i…
jorgefilipecosta Nov 27, 2026
79e1f52
Build/Test Tools: Simplify the error handling and setup of the live A…
jorgefilipecosta Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ LOCAL_WP_ENVIRONMENT_TYPE=local
LOCAL_WP_DEVELOPMENT_MODE=core
LOCAL_WP_TESTS_DOMAIN=example.org

##
# API keys and models for the live AI provider tests, which send real requests.
# See `tests/phpunit/manual/wpAiClientLiveProviders.php`.
##
# WP_TESTS_AI_ANTHROPIC_API_KEY=
# WP_TESTS_AI_GOOGLE_API_KEY=
# WP_TESTS_AI_OPENAI_API_KEY=
#
# Model IDs to use instead of the default models, such as `gemini-3.5-flash-lite`.
# WP_TESTS_AI_ANTHROPIC_MODEL=
# WP_TESTS_AI_GOOGLE_MODEL=
# WP_TESTS_AI_OPENAI_MODEL=

##
# This silences the tips output by the dotenv package.
##
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@
"phpstan/phpstan": "2.3.7",
"phpstan/phpstan-phpunit": "2.1.2",
"phpstan/phpstan-strict-rules": "2.1.2",
"yoast/phpunit-polyfills": "^1.1.0"
"yoast/phpunit-polyfills": "^1.1.0",
"wordpress/ai-provider-for-anthropic": "1.0.5",
"wordpress/ai-provider-for-google": "1.3.0",
"wordpress/ai-provider-for-openai": "1.3.0"
},
"config": {
"audit": { "ignore": [ "GHSA-hmqg-cxww-wqhq", "PKSA-rdkp-vv9z-mjkg" ] },
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ services:
GITHUB_REF: ${GITHUB_REF-false}
GITHUB_EVENT_NAME: ${GITHUB_EVENT_NAME-false}
HOST_PATH: ${PWD-}/${LOCAL_DIR-src}
# Passed through for the live AI provider tests, and only when they are set.
WP_TESTS_AI_ANTHROPIC_API_KEY:
WP_TESTS_AI_GOOGLE_API_KEY:
WP_TESTS_AI_OPENAI_API_KEY:
WP_TESTS_AI_ANTHROPIC_MODEL:
WP_TESTS_AI_GOOGLE_MODEL:
WP_TESTS_AI_OPENAI_MODEL:

volumes:
- ./tools/local-env/php-config.ini:/usr/local/etc/php/conf.d/php-config.ini
Expand Down
Loading
Loading