Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

Tagged in 'testing'

TDD Midlife Crisis: White-Box Testing & Refactoring Tests

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.

Read More

3 Steps to Doing Mobile App Testing the Right Way

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.

Read More

Unit-Testing AngularJS in a Rails app using the Jasmine gem

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

Read More

Move Over Timecop…Hello ActiveSupport::Testing::TimeHelpers

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

Read More

The little green Droid's take on TDD

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

Read More

Adventures in Clojure: TDD

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

Read More

Have you tested your tests lately?

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

Read More

Writing Beautiful Specs with Jasmine Custom Matchers

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

Read More

Using Ginkgo with Gomock

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

Read More

Testing Custom Form Builders in Rails

Rails gives you the ability to customize the output when using the form_for view helper in a view by using a custom form builder. This functionality is great if you want to change the default HTML generated by the form_for …

Read more

Read More