Skip to content

Use PHP Behat configuration as behat.php when the edition ships one - #145

Open
ViniTou wants to merge 5 commits into
mainfrom
behat-php-config
Open

Use PHP Behat configuration as behat.php when the edition ships one#145
ViniTou wants to merge 5 commits into
mainfrom
behat-php-config

Conversation

@ViniTou

@ViniTou ViniTou commented Aug 28, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12374

Description:

Behat 4 drops YAML configuration; ibexa/behat 6.0 ships behat_ibexa_<edition>.php next to the YAML files (ibexa/behat#195) and the 6.0 recipe copies both to the project root (ibexa/recipes-dev#258). The 6.0.x-dev and stable prepare scripts now copy the .php file to behat.php when it exists and fall back to behat.yaml otherwise, so older versions are unaffected.

Behat's auto-discovery prefers every YAML candidate (behat.yaml, behat.yml.dist, …) over behat.php, and the friends-of-behat/symfony-extension Flex recipe leaves a behat.yml.dist in the project root, which then silently wins. The scripts therefore remove all discovery candidates before copying the edition file.

Also fixes a pre-existing bash syntax error in both scripts (elif [[ ... ]] then without ;, rejected by bash -n).

For QA:

CI only. Verified via ibexa/behat#195 with ci-scripts-branch: behat-php-config.

Documentation:

N/A

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant