joomla/jissues — pull request #365 by elkuku (2014-05-22 01:48:53+00:00)
Title: Behat

One of the latest [PHPStorm EAP releases](http://blog.jetbrains.com/phpstorm/2014/05/phpstorm-8-eap-138-184/) contained "initial support" for [Behat](http://behat.org/) which, in conjunction with [Mink](http://mink.behat.org/), can be used to write automated tests.
I had not heard of Behat before but it immediately caught my attention because of the way tests are written in natural language -- Like this:

```
Scenario: Check the top menu "Users"
Given I am on "/"
And I follow "Users"
Then I should see "Users List"
```

This is the whole test. Human readable. No code involved.

Since our test suite is not very extensive currently -- maybe we can explore this a bit.

I also added a method to login a dummy user or a dummy admin for testing purpose. This functionality should only be available in a "local" environment.

Not sure how/if it can be run on Travis. I remember there was the possibility to start some kind of HTTP server?

There is also support for [Selenium2](http://docs.seleniumhq.org/) - just prefix a feature with `@javascript` and fire up the Selenium server.

This is meant as a start :wink:

See also: [Testing Documentation](Documentation/Development/Testing.md)