Join Kit Eason for an in-depth discussion in this video What you should know, part of F#: Automated Testing for Developers.
- [Instructor] This course does have a few prerequisites; though if you don't quite meet them, I'd still urge you to give it a try. You'll need some exposure to F Sharp and software development generally. If you know how to create a module and declare a type, that's a record type, make a let binding, maybe a little bit of path matching, you'll be absolutely fine. If you have a lot of exposure to C Sharp and you're curious about F Sharp, you may also find this course accessible. However, you might have more luck either with my course, Developing Financial Applications in F# or with Rachel Reese's course, F# and Xamarin Development Basics.
The other thing to say is that this course uses Visual Studio 2017 on Windows. I use the community edition, which is free. You'd also be fine with Visual Studio 2015. Much of the material is also applicable to other F Sharp environments, though the mechanics of writing code, running tests, and so forth, will definite.
Kit Eason explains how to use xUnit—a .NET unit-testing package—to do some test-driven development, and demonstrates how to improve your test run experience using NCrunch, a test runner. He shows how to use FsCheck to generate test cases, and how to use Expecto to move into the world of tests as first-class values. He also covers the use of Canopy to automate the testing of web user interfaces, and of mocking to tame dependencies.
- Solving issues with early versions of Visual Studio 2017
- Classical unit testing with F#
- Creating a testable project and installing Paket and xUnit
- Test driving an implementation
- Improving your test run experience with NCrunch
- Going beyond test cases with FsCheck and Unquote
- Making tests first class using Expecto
- Using mocking to tame dependencies
- Web UI testing with Canopy