Currently browsing: Testing

Adventures with AngularJS 1.3

The new AngularJS (specifically v1.3) offers many new features and under-the-hood improvements. For details about this release you should check out the changelog. There are a few breaking changes and I want to discuss one in particular that gave me headaches. Let’s say you have a directive such as this one: Your unit test for […]

Continue reading →

Protractor taking screenshots

A very useful trick when using protractor with jasmine is the ability to take screenshots when one of your tests fail. Here is a very simple afterEach block that verifies if your test passed. If not, a screenshot of the browser is taken and saved. Very useful for figuring out what is going on with […]

Continue reading →

Protractor testing

I’ve been working a lot with protractor recently. And even though there are still some issues with phantomjs, it is still pretty awesome. It integrates seamlessly with Jasmine and Cucumber, so that’s a bonus. To start using protractor you can follow the official documentation here. One very cool feature I like is multiCapabilities. As E2E […]

Continue reading →