There is much buzz about Behat in the developer community. We’ve learned that automated behaviour testing is a highly valued component of our projects. But there are many tools available and many choices for implementing a BDD framework. In this session we make the case that Behat is the right choice for a Drupal project. We intend to persuade you why Behat is a step in the right direction by looking at code example, showing demos, and discussing the advantages and disadvantages of the options available.
Given you want to test your site
And you've heard the buzz about Behat
When you attend this session
And learn how to make the most of testing
And you apply this to your project
Then you will have no bugs on your site*
Topics covered:
- Quick intro to Behaviour Driven Development.
- Setting up your Drupal project for Behat Testing including Mink, Selenium, Drupal Extension.
- Choosing a web driver for scenarios.
- When to use Behat and when not to use it.
- Role based or permissions based test users.
- Dealing with file uploads, pathauto and other fun points.
We'll discuss these questions:
- Do non-programmers actually ever read the gherkin code?
- Why not just use Selenium, or some other testing framework?
- Behat for testing core, contrib modules?
- Can you use Behat for UAT?
Comparison of tools:
- SimpleTest, PHPUnit (not able to do BDD)
- Selenium
- Codeception
- jMeter
- Behat
The case for Behat:
- Using Behat for User Acceptance Tests
- Simple to read and write scenarios
- Flexible implementation
- Drupal extension
- Community momentum
* In theory. And also come learn why this is a bad test scenario.
- Log in to post comments