O'Reilly logo

Testing with F# by Mikael Lundin

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

Setting up TickSpec

TickSpec is a lightweight Behavior-driven Design (BDD) framework for F#, influenced by SpecFlow from C#, which has its root in the Ruby testing framework, Cucumber. What is common between all these frameworks is that they implement a domain specific language called Gherkin, which is used to express the tests.

Let's start by adding TickSpec from the NuGet package manager to our application, as shown in the following screenshot:

Setting up TickSpec

Next up, we will write our first feature file. This file will specify what we expect of the feature and provide scenarios for us to verify. This file is written in Gherkin DSL to mimic the natural language. ...

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