These are chat archives for Behat/Behat

11th
Aug 2015
Abd ar-Rahman Hamidi
@hbakhtiyor
Aug 11 2015 07:36
This message was deleted
This message was deleted
@stof thanks,
does everyone know any open source projects which uses behat best practices? which i can learn from them
Abd ar-Rahman Hamidi
@hbakhtiyor
Aug 11 2015 07:43
Christophe Coevoet
@stof
Aug 11 2015 09:48
@hbakhtiyor I would rewrite the scenario from the perspective of its actual user. A visitor of your site does not know about ids, and probably does not care about threads/1234 being the URL
btw, remember that scenarios are isolated. The second scenario should never rely on things done in the first one
it should be possible to run scenarios alone, and to run them in any order
I think there is an extension reordering scenarios in random order to enforce that btw
Abd ar-Rahman Hamidi
@hbakhtiyor
Aug 11 2015 15:12

@stof i'm testing rest api endpoints

does everyone know any open source projects which uses behat best practices? which i can learn from them

what do you think?

Ciaran McNulty
@ciaranmcnulty
Aug 11 2015 16:16
@stof it's an open PR rather than an extension
Christophe Coevoet
@stof
Aug 11 2015 16:22
@ciaranmcnulty how, isn't it possible to implement it as an extension ?