Agile Event Session

FAST: An Innovative Way to Scale

This video content is for Agile Alliance members only

If you’re already an active member, please log in now.

To view this content, and gain access to many more valuable resources, conference discounts, and invitations to exclusive networking and learning events, please consider becoming an Agile Alliance member.


If you’re familiar with unit testing, you’re probably also familiar with the brittleness and excessive boilerplate that often results from overuse of mock objects and other test doubles. They’re a great tool, sure, but they also make tests hard to read and code hard to refactor. Luckily, there’s another way to do it: nullable infrastructure. Nullable infrastructure is part of James Shore’s “Testing Without Mocks” pattern language. It’s a drop-in replacement for normal test doubles that allows you to move from isolated interaction-based tests to sociable state-based tests. The end result is tests that are fast, reliable, and low-maintenance. In this hands-on workshop, we’ll use a simple Node.js microservice client to demonstrate how nullable infrastructure works. We’ll start with traditional mock-based tests and modify them to use nullable infrastructure instead. Then we’ll explore how to create your own nullable infrastructure from scratch. Along the way, you’ll learn the tradeoffs involved and come to your own conclusions about when to use mocks and when to use nullable infrastructure. This is a highly technical workshop intended for programmers. Be sure to read the following prerequisites and come prepared to code! **Prerequisites and Advance Setup** This is a hands-on coding workshop. You’ll be programming in JavaScript and Node.js and running commands from the command-line. Prior experience with unit tests and mock objects is highly recommended. Familiarity with JavaScript, Node.js, Mocha, Chai, command-line basics, and microservice basics is also recommended. Please bring a laptop prepared in advance with the following: 1. Install Node.js 2. Install Git 3. Install your favorite JavaScript code editor 4. Clone the example repository: `git clone` (Note: this repo will not be available until the conference begins.) 5. Read the README and run the build

Additional Resources

Add to Bookmarks Remove Bookmark
Add to Bookmarks Remove from Bookmarks
Add to Bookmarks Remove from Bookmarks

Speaker(s) may be willing to present this session at local group meetings and other events.


More Agile Event Session Videos

The Org That BAPO Built
Conways Law - the concept that your product resembles your org structure - is a double-edged sword. If your organization is intentionally structured to optimize your strengths, it’s great! However, oftentimes organizations are the result of unintenti…

Have a comment? Join the conversation

Discover the many benefits of membership

Your membership enables Agile Alliance to offer a wealth of first-rate resources, present renowned international events, support global community groups, and more — all geared toward helping Agile practitioners reach their full potential and deliver innovative, Agile solutions.

Not yet a member? Sign up now