symfony / recipes-contrib

Symfony Contrib Recipes Repositories

Home Page:https://github.com/symfony/recipes-contrib/blob/flex/main/RECIPES.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codeception: Adjust recipe to Codeception's new structure

ThomasLandauer opened this issue · comments

When following https://github.com/symfony/recipes-contrib/blob/master/codeception/codeception/2.3/post-install.txt, I'm getting this error after vendor/bin/codecept run:

Module Symfony is not installed.
Use Composer to install corresponding package:
composer require codeception/module-symfony --dev

This is probably due to the fact that Codeception was refactored since this recipe was written. The recipe should reflect this and install codeception/module-symfony right away.

👍

Im happy to review a PR.

I'm completely new to recipes.

So what needs to be done IMO is to automatically run composer require codeception/module-symfony --dev. But when looking at https://github.com/symfony/recipes I can't see a way to enable this :-(

@Nyholm would installing this dependency from composer-scripts configuration be viable? Are we sure we want to install some dependencies for the user like that? Maybe it should be added to after-install text?

I don't have any idea how to solve this.

What would work is always requiring codeception/module-symfony instead of codeception/codeception.
But this warning is correct when only installing codeception/codeception.

Recipes are not the correct tools for dependency management.