Hello everyone,
I want to introduce you a new project I worked on : Merlin.
https://drupal.org/sandbox/churel/2160815
The global goal is to build automatically drupal components (content type, taxonomy, field etc...) and their BDD tests.
Here is how it works :
So basically at every start of project all developer create (or should) a entity/component spreadsheet for the architecture of the website. From this spreadsheet Merlin create two things :
- the "building" : A big behat file for the creation of all the components. Here we use behat to create and not for testing (I know this is strange).
- the testing : BDD Test files for the these components.
How to use it:
-Download and install the module (git clone --branch master churel@git.drupal.org:sandbox/churel/2160815.git merlin)
-On the merlin repo there is a template spreadsheet (ods-template/Template.ods). Or if you are lazy test the Example.ods.
-Go to : 'admin/config/system/merlin' and upload you ods. and give the credential for the admin role.
- You will get a zip with a build and test folder. Run the building.feature field with the FeatureContext.php with behat.
-You can try the BDD test but this part really need more work
Thx you for reading. If you have some time I really need some feedback and if you are really interested by the project I also need help.
ps : don't forget to configure behat.yml with your site.
ps2 : This is really experimental.
ps3 : The BDD test part is buggy. I will need help on it :)