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

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL CLOUD FOUNDRY
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.

LABS
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 module called NgMock that provides a set of fake services for things such as HTTP requests, in order to make them easier to unit test.

Read more »

LABS
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 this new kid in Rails 4.1, ActiveSupport::Testing::TimeHelpers.

Read more »

LABS
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 software development since 1999 and Kent Beck championed it as part of the Agile Manifesto.

Read more »

LABS
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 conversations recently, Clojure popped onto my radar once again.

Read more »

LABS
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 an app with a public API, accurate and clear documentation is a blessing for both you and your third-party developers.

Read more »

LABS
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 this, it is important that our tests are not only comprehensive, but also descriptive and legible.

Read more »

LABS
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 edge off.

Read more »

LABS
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 view helper.

Read more »

LABS
writing Rails engine rspec controller tests

If you are trying to test controllers under a Rails engine, you might come across this error:

Failure/Error: get :index ActionController::UrlGenerationError: No route matches {:action=>"index", :controller=>"engine_name/controller_name"}

Despite, setting up your routes, controller, and mount correctly, the tests cannot find your route.

Read more »