Adding a User Manager to your Feature Tests

In my last post I described how to write declarative step definitions. However, this means our test cases can’t assume it knows who is performing the action because the user can change at any time. We’ll need to introduce a sort of state machine to track the current user and log in as another user when needed. […]

Continue Reading

Writing Acceptance Tests in Third Person

When I was learning to write acceptance tests with Cucumber everything started with “I”. It made sense because you were driving a browser to click buttons and fill in forms and that’s what “you” did. However, I recently realized this doesn’t work when writing tests that require multiple users to interact with the same test. […]

Continue Reading

Huck – PHP Testing Framework

Huck is a Behavior Driven Development (BDD) framework based on Jasmine for JS. It is designed with a simple syntax to give it a fast learning curve. Getting Started Huck runs in the browser so you don’t have to load terminal. Just upload it to your server, create the specs and load index.php. Huck will […]

Continue Reading