Tagged in

Specs2

Pragmatic Scala
Pragmatic Scala
Scala and functional programming for mortals.
More information
Followers
170
More, on Medium

Functional Programming, Simpler Unit Testing Part 3

In the previous part of the series (Functional Programming, Simpler Unit Testing Part 2) I illustrated how we can use mocks and stubs to handle tests for functions that depend on objects that produce side effects. Now we are going to take a…


Functional Programming, Simpler Unit Testing Part 2

In Functional Programming, Simpler Unit Testing Part 1 I illustrated how we can use higher order functions and function composition in order to deal with methods that produce side effects and how we can test our code more efficiently by…