Propel2 Meets Behat For The Win !

Hi there,

Do you know Behat ? It's a Behavior Driven Development (BDD) Framework inspired by Ruby's Cucumber project, originally written by Konstantin Kudryashov aka @everzet. The aim of this library is to provide functional tests to your application.

You'll probably ask me why I'm talking about Behat on the Propel's blog, and you are right. Yesterday, I received an incredible email from Konstantin and some of you asked us what was the subject. Actually, Konstantin and the KnpLabs' team want to offer a gift to you, Propel community, by taking part in the Propel2 development! That's really fantastic! They'll bring Behat and BDD to the Propel2 development process, for instance:

So, please welcome Konstantin and Behat to the Propel2 project!

Posted by William DURAND 

8 comments

Nov 15, 2011
Ludo said...
Awesome news... Propel + Behat for the love :D
Nov 15, 2011
xosofox said...
WOW!!!!
Thanks for replying to my twitter question with a post like this :D

Really excited to see this in action some day soon, Behatch!?! ;-)

Nov 15, 2011
alexisjanvier said...
welcome Konstantin !
Nov 15, 2011
pminnieur said...
Will there be a PHPUnit test suite as well?
Nov 15, 2011
@pminnieur: Behat tests and unit tests don't test the same thing. The former test behavior, the latter test class APIs. So I guess yes, there will still be a phpUnit testsuite.
Nov 15, 2011
pminnieur said...
Thank you Francios, but I know the difference between Behat/BDD and PHPUnit/TDD. The post read like "we're totally switching to BDD for testing" - that's why I asked.
Nov 15, 2011
@pminnieur not instead of PHPUnit, but in addition to. We'll use BDD scenarios for parts, where they'll fit best ;-) Unit tests are still a must for a library like Propel!

The aim is to test the entire ORM behavior with Behat and internal implementation with PHPUnit.

Nov 15, 2011
William DURAND said...
As François and Konstantin said, there is no plan to remove PHPUnit tests… Never! The Propel test suite is strong and we cannot work without it (TDD style).

Leave a comment...