Timecop is a great addition to your testing toolbox, but if you’ve ever tried to use Timecop to interact with a database, and then got the most mysterious of existential errors: expected: Sun, 08 Jun 2014 19:18:22 UTC +00:00 got: Sun, 08 Jun 2014 19:18:22 UTC +00:00 I feel your pain. The trouble comes from the […]

On my current project, we’re using RabbitMQ. It’s a bit of infrastructure that has to be present, and if it isn’t, our integration tests will fail with mysterious error messages. We want our tests to be informative, so let’s write a test that asserts that we have the requisite infrastructure in place. require “bunny” require […]

If you’ve written enough integration tests (with Capybara et al.), you must have noticed how much time your tests spend just logging into your web app. Even if it takes 1 second each time, it starts to add up. Here’s a solution that I’ve written several times, now. I create a test “jig” that allows […]

It is a time-honored tradition for Pivots to blog about their first few months at Pivotal. A typical day at Pivotal is strong work. It’s different from any previous job. It’s exhausting. After six weeks or so, however, the Pivots find their rhythm. I’m not going to write any more about that. I’ll include some […]

Sencha Touch BDD tl;dr A multi-part series of articles on how to test Sencha Touch applications. It uses Jasmine for unit testing and Siesta for integration testing. Part 5 – Controller Testing Recap Part 4 Introduced PhantomJS as an easy and faster alternative to headful Jasmine testing. Part 3 added jasmine-ajax so we can verify […]

Sencha Touch BDD tl;dr A multi-part series of articles on how to test Sencha Touch applications. It uses Jasmine for unit testing and Siesta for integration testing. Part 4 – Headless testing using PhantomJS Part 3 added jasmine-ajax so we can verify that stores and models react properly to back-end data. We also learned how […]

Sencha Touch BDD tl;dr A multi-part series of articles on how to test Sencha Touch applications. It uses Jasmine for unit testing and Siesta for integration testing. Part 3 – Testing Views and Mocking Stores In Part 1 I showed you how to set up your Sencha Touch development environment to use the Jasmine JavaScript […]

Follow

Get every new post delivered to your Inbox.

Join 485 other followers