Overview
This course introduces the tools and techniques needed to write F# based unit tests. A special emphasis is placed on test driven development (TDD). Functional TDD is a testing approach that uses functional programming to unit test an application before developing it. Functional programming (as opposed to imperative, state-transition-style programming) in a language such as F# lends itself well to TDD because smaller, well-targeted tests can be written in isolation.
In this instructor-led, live training, participants will learn how to use F# to write unit tests that are direct and easy to understand.
By the end of this training, participants will be able to:
- Build a complete system out of small, isolated functions
- Express test cases as properties instead of examples
- Write test code without the need for mocks
- Reduce the need to control and check for side effects
- Use libraries such as NaturalSpec, FsCheck, FsTest, FsUnit and Unquote to facilitate test cases creation
- Use F# to overcome some of the problems associated with mainstream Test-driven Development (TDD)
Audience
- Test engineers
Format of the course
- Part lecture, part discussion, exercises and heavy hands-on practice
Requirements
- A general understanding of software testing
- Programming experience in any language