Submitted by greggles on
I recently gave a presentation about Behat and automated testing of code at the Denver Drupal Meetup. It's basically the style of testing that we've embraced most strongly at CARD.com.
Here are the slides:
I also mentioned a set of steps to get up and running. So, here goes:
- Create a sites/all/tests directory with this composer.json file in it:
{
"require": {
"drupal/drupal-extension": "*"
},
"config": {
"bin-dir": "bin/"
}
}
- Install composer on your system
- Run
composer install
in the sites/all/tests/ directory - Run
bin/behat --init
- Create your features in the features/ directory
- Run tests with
bin/behat
Category:
People Involved:
- Log in to post comments