Skip to content

Unable to run after instalation  #146

@AntonioCS

Description

@AntonioCS

Hey,
just followed this article here https://pavlakis.dev/posts/upgrade-to-friends-of-behat-symfony-extension/
to get behat up and running in symfony 4.
I ran the following commands:

composer require --dev friends-of-behat/symfony-extension:^2.0
composer require --dev friends-of-behat/mink friends-of-behat/mink-extension friends-of-behat/mink-browserkit-driver

I then run:

./vendor/bin/behat

and I get the following error:

In ContextServiceEnvironmentHandler.php line 195:
  Kernel "App\Kernel" used by Behat with "local" environment and debug enabled needs to have "FriendsOfBehat\SymfonyExtension\Bundle\FriendsOfBehatSymfonyExtensionBundle" bundle registered.  

Not sure why this isn't using the test env but I went to bundles.php and changed test to all in FriendsOfBehat\SymfonyExtension\Bundle\FriendsOfBehatSymfonyExtensionBundle::class => ['all' => true]
I ran the command again and got this error:

In Validator.php line 61:
  Can not find a matching value for an argument `$kernel` of the method `App\Tests\Behat\DemoContext::__construct()`.  

What am I doing wrong? I basically just installed this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions