O'Reilly logo

Clojure Web Development Essentials by Ryan Baldwin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Testing in Clojure

Testing is quite possibly the most controversial topic in software development I've ever seen. Some developers are passionate about the merits of automated testing, what should be tested, and how. Conversely, some developers are dead set against automated testing. This can be especially so in languages that come with a REPL. That being said, Clojure still ships with a clojure.test namespace. As such, this chapter will focus primarily on how we can use clojure.test to write tests for our hipstr.validators.user namespace. In this chapter, we will:

  • Explore the necessity of automated testing in Clojure (hint: I believe there is always room for testing)
  • Discuss how to write assertions and tests, and how to run them

    Tip

    What ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required