Hi guys. I dont know if you know Behat. With Behat you can write test in natural language. And with Mink (a browser), you can run functional tests like
Scenario: User Activated can login
Given exists an activated user called "mario" with email "mario@mario.it" and password "password"
And I am on "/login"
When I fill in "Username" with "mario"
And I fill in "Password" with "password"
And I press "Login"
Then the response should contain "Welcome, mario!"
Page 1 of 1
Behat/Mink support for BDD?
#2
Posted 21 February 2012 - 10:58 AM
Hi again sensorario, just gonna add this is based off Ruby's cucumber project.
See my development site @ www.CodeTheInter.net (BETA)


Quote
If you make it idiot proof, they'll build a better idiot
#3
Posted 21 February 2012 - 12:51 PM
Why not write an extension / demonstration / tutorial / whatever - so that we can see how Behat and Mink works with Yii ?
If it's succesful, then chances are higher that it will make it's way into the official Yii package.
If it's succesful, then chances are higher that it will make it's way into the official Yii package.
"Less noise - more signal"
#4
Posted 22 February 2012 - 09:35 AM
jacmoe, can you help me in this stuff? I've tryied. I can share the project on github.
#5
Posted 20 March 2012 - 11:34 PM
Can you share an example of the introduction of behat into Yii?
I have problems with include-warnings, like
I have problems with include-warnings, like
Warning: include(): Failed opening 'PHPUnit_Framework_Comparator_MockObject.php'
42
#6
Posted 13 May 2012 - 08:43 AM
hi guys, just noticed that there is Behat / YiiExtension in the official Behat github account, it looks like demostration of how to integrate behat with "other frameworks" (see this everzet's post) rather than ready-to-use yii extension, but anyway it should help you
btw, I didn't use behat with yii, but it shouldn't be a problem just to run behat on yii project: you just need to configure autoloader and provide yii app instance for the behat context
btw, I didn't use behat with yii, but it shouldn't be a problem just to run behat on yii project: you just need to configure autoloader and provide yii app instance for the behat context
#9
Posted 19 September 2012 - 04:20 AM
Have anyone made any progress on this? If not I'll get into it as well, missing a nice BDD testing framework for my Yii projects. I use it as a standard over my django projects.
#10
Posted 02 October 2012 - 11:42 PM
Take a look at the YiiBoilerplate wiki article: http://www.yiiframew...ure-in-seconds/
There isn't much info on Behat (you have to understand it / teach yourself how to use it), but the Boilerplate has Behat pre-setup and ready to use, along with all the Mink drivers
There isn't much info on Behat (you have to understand it / teach yourself how to use it), but the Boilerplate has Behat pre-setup and ready to use, along with all the Mink drivers
Share this topic:
Page 1 of 1

Help
This topic is locked










