Drupal testing mastery

Speakers: 

Learning to test is difficult

So you want to become a better tester. Perhaps you've even learned a few tools that are being sold in the Drupal world such as the Simpletest or Behat frameworks. You may have heard that Drupal 8 is shipping with PHPUnit and perhaps you've even played with that a bit. But what does it all mean? How does one go from basic tool familiarly to actually testing effectively?

first learn, then detach, and finally transcend

Shuhari is a concept from martial arts that describes three stages of on the road to mastery and this session will take that idea to show a clear path from testing beginner to testing master.

The path travelled

In three stages we will cover:

- quick examples of testing methods you can implement on your projects right now with behat and simpletest and implement verbatim to see immediate results
- an example of breaking away from the safety of the behat drupalextension or Drupal simpletest and doing your own thing (custom behat step definitions and ACTUAL unit tests with PHPUnit
- an example of what a testing master thinks about when approaching tests in practice on real projects (applying your knowledge in the moment)

What you will learn

After this session you will not only know the difference between unit tests, integration tests and acceptance tests in theory but will see examples of them being correctly applied to real Drupal projects.

Schedule info
Track: 
Coding and Development
Experience level: 
Advanced
Drupal Version: 
Drupal 7.x