Chapter 9.  Testing

In this chapter, we will cover:

  • Behavior-driven development
  • Testing with random inputs and pattern-based testing
  • Benchmarking with Criterium, performance tips, and other tools

Introduction

In this chapter, we will learn about testing for Clojure applications. With our first recipe, we will introduce behavior-driven development. Making use of Cucumber for behavior-driven development, the recipe implements some interesting BDD applications, including Spark and OpenCV.

The next recipe, on pattern-based testing, shows you the famous Haskell's QuickCheck in Clojure. In this recipe, you will learn to generate test patterns automatically.

With our final recipe for this chapter, Benchmarking with Criterium, performance tips, and other tools ...

Get Clojure Programming Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.