I’ve been undergoing a "Test-Driven Development (TDD) Midlife Crisis", in which I've been critically examining how I test drive code. During this process, I've been thinking about the kinds of tests I write, how much I mock, when to mock, and other fundamental questions of test-driven development. Over my Thanksgiving vacation, I re-read the seminal book on TDD, Test-Driven Development By Example by Kent Beck. It's a quick enough read, which reminded me of something that I'd been saying for a while without fully understanding the implications: TDD is more about confidence in your code and designs than it is about proving correctness. Here’s how I went about re-familiarizing myself with this concept.
As mobile app usage is becoming more popular, developers still face key challenges around quality assurance and testing. In this post, Pivotal outlines how test driven development, automated testing, and user testing with automated distribution can make a difference and highlights a new mobile app service that greatly simplifies the last mile of testing, App Distribution for Pivotal Cloud Foundry.
Testing AngularJS applications is easy with Jasmine. If you look at the AngularJS docs, many of the code examples show a corresponding Jasmine spec.
One important part of AngularJS’s testing support is the included angular-mocks.js file. This file contains a … Read more
Imagine this, you are testing a Rails application with RSpec and you have the need to freeze or travel through time in your specs. Your old trusted friend Timecop has served you well in the past but you’ve heard about … Read more
Test-driven development is an iterative process of writing automated tests that define a feature before development, writing code to pass the tests, and finally refactoring the code to meet project architecture standards. The concept has been an integral part of … Read more
Getting started with Clojure
Several months ago, I had picked up a copy of Seven Languages in Seven Weeks and I had got through about half of the Clojure chapter before I got distracted by something else. After a few … Read more
Summary: If you are using the rspec_api_documentation gem to test and document your API, you can use this code to test that you have a spec for each of your routes. Check out the gist here: http://gist.github.com/kayline/8868438
If you’re building … Read more
Custom matchers are one of Jasmine’s most powerful, and yet underutilized, features.
Here at Pivotal Labs, we write tests for a few reasons: to drive feature development, to catch regressions, and to provide code documentation to other developers. Because of … Read more
While working on my personal project in Golang, I ran into the usual withdrawal symptoms that any pivot experiences when they leave the comfort of the BDD tools afforded to rubyists.
Enter Ginkgo and Gomega, these tools helped take the … Read more