These are chat archives for Behat/Behat

23rd
Jun 2017
Christophe Coevoet
@stof
Jun 23 2017 08:58
Well, profiles are a way to provide different configurations to extensions
if you only need to use different contexts, you should use suites
this will allow you to run everything in a single Behat run
(as all suites can run in this case)
Christer Edvartsen
@christeredvartsen
Jun 23 2017 09:00
hmm, so executing behat will by default execute all suites?
Christophe Coevoet
@stof
Jun 23 2017 09:01
it executes all suites defined in the profile being run
and there is a CLI option to select a single suite
Christer Edvartsen
@christeredvartsen
Jun 23 2017 09:01
Right. Sounds like I made the right choice then. :) Thanks for the help.
Christer Edvartsen
@christeredvartsen
Jun 23 2017 09:12
Btw, anyone here knows the internals of Mink? I have a Behat API Extension which uses Guzzle 6, and I got question if my extension could exchange response instances with Mink. If Mink uses a library which uses PSR-7 I guess this would be doable, but I've yet to use Mink...
Christophe Coevoet
@stof
Jun 23 2017 09:16
Mink is a browser abstraction, not an HTTP client
And the underlying driver may not even use PHP to perform the actual requests (Selenium2Driver relies on Firefox/Chrome/... for that, ZombieDriver relies on zombie.js, etc)
Christer Edvartsen
@christeredvartsen
Jun 23 2017 09:18
Ah, so Mink itself does not do the actual HTTP requests.
Right, thanks again.
Christophe Coevoet
@stof
Jun 23 2017 09:18
btw, Mink is a bad choice to test an API (browsers are very bad API clients, as navigation can only happen with GET or POST)
Christer Edvartsen
@christeredvartsen
Jun 23 2017 09:19
I haven't used it, so wouldn't know. Just got a question from someone who seems to be using it, along with my extension.
Christer Edvartsen
@christeredvartsen
Jun 23 2017 09:58
@stof I have the features in a custom location, so I need to add paths: [%paths.base%/some/path] ... it seems I have to repeat this for all suites in behat.yml. Is there a way to set this only once?
Christophe Coevoet
@stof
Jun 23 2017 10:31
I don't think so