Skip to content

Testing

Run the Functional tests in a disposable Drupal test project with this Recipe installed under recipes/ai_code_review and the matching drupal/core-dev package available. Configure SIMPLETEST_BASE_URL, SIMPLETEST_DB, and BROWSERTEST_OUTPUT_DIRECTORY for that test project, then run from its project root:

vendor/bin/phpunit -c web/core/phpunit.xml.dist recipes/ai_code_review/tests/src/Functional

The tests apply the Recipe to clean and configured sites, check reviewer access, and verify that repeated application preserves existing settings. They do not call an AI provider. Public CI uses Drupal's standard Recipe test setup.

To check the documentation locally, install MkDocs Material in a Python virtual environment and run from the Recipe repository root:

mkdocs build --strict