liuggio / fastest

Simple parallel testing execution... with some goodies for functional tests.
MIT License
473 stars 65 forks source link

[documentation] How to run behat 3 tests #28

Closed fonsecas72 closed 9 years ago

fonsecas72 commented 9 years ago

Hi, I see some documentation regarding behat 2.* and commits that seem to make it possible to run parallel scenarios with behat 3. Should the actual 2.* documentation work for behat3?

I would really appreciate some help please.

cc @aitboudad

aitboudad commented 9 years ago

Yes, the only difference is:

# behat.yml
extensions:
    Liuggio\Fastest\Behat\ListFeaturesExtension\Extension: ~

And to make it work with (Selenium, Mink, etc) you need to add:

if (getenv('ENV_TEST_CHANNEL_READABLE')) {
    $this->getSession()->setCookie('ENV_TEST_CHANNEL_READABLE', getenv('ENV_TEST_CHANNEL_READABLE'));
}

in visitPath.

fonsecas72 commented 9 years ago

Thank you, can you help me with one more thing. Did you manage to handle the database? I'm getting some errors that seem related.

aitboudad commented 9 years ago

Yes, which errors ?

fonsecas72 commented 9 years ago

Failing scenarios, sorry I was not clear.

fonsecas72 commented 9 years ago

Did you had to do some extra configuration?

aitboudad commented 9 years ago

https://github.com/Sylius/Sylius/blob/master/src/Sylius/Bundle/CoreBundle/Behat/HookContext.php#L41

fonsecas72 commented 9 years ago

Thank you very much. I will look into it.