Blog: tools

Rodrigo Aguilera's picture
Rodrigo Aguilera

Test JavaScript interactions with Behat

Following the series Mercè started and the talks I have been giving I wanted to write a bit more about Behat and some niceties that I learned on the way.

One of the main points people get interested on Behat is not only because you can use natural language to describe and test your application but also because all the tests are able to run in a real browser.

Let’s make an overview of the main pieces available to achieve a broader testing strategy.

Mercè Pedraza's picture
Mercè Pedraza

How to get started with Behat

Automated testing is one of the resources that greatly facilitates the task of development and one of the tools we can use with good integration with Drupal is Behat. It's an open source framework for behavioral testing, and that means that the testing is done using the web as a user would do.

One of its main strengths is its readability: it is written in natural language describing the behavior to be tested, and allows us to check at any time if our application behaves as expected.

In Ymbra we find it especially useful to know if any new changes we have made to the code produces some regression in functionality, which can easily pass unnoticed and take some time to be detected.

Subscribe to RSS - tools