Learn how to design and write a meaningful failing unit test.
- [Instructor] So now we're going to move…the NCrunch Tests window over here,…just so we can kind of keep an eye on it,…and I'm going to close my Solution Explorer just for now.…In fact, we're just going to unpin it.…So we can kind of keep an eye on what's going on,…and I'm not showing parsing tests at the moment,…so let's show parsing tests, there we go.…It looks, by the way, like our main bot program failed…to build, so let's just see what's going on with that,…and it's just a naming issue.…
So just to get that rammed up for now,…I'm going to reopen my Solution Explorer,…and I'm just going to rename our main function,…so that build error has now disappeared…from our NCrunch Tests window.…It's not a thing we're actually testing at the moment,…but we might as well tidy that up now.…So let's now go ahead and write some real tests.…Remember, we're working on the parser,…and I'm going to be slightly naughty and skip ahead…to the happy path.…Normally, when I'm writing unit tests,…I try and write a bunch of tests for failing paths…
- Defining values and calling functions in F#
- Defining and identifying discriminated unions
- Working with if-else expressions
- Writing unit test
- Using type providers to access data
- Analyzing data with collection functions
- Plotting data using the R type provider
- Using railway-oriented programming to handle errors
- Integrating with Twitter
- Deploying an F# application to Azure
Skill Level Intermediate
1. Get Started with F#
2. Build a Simple Parser with Unit Testing
3. Use F# CSV Type Provider to Get Data
4. Analyze Data with F# Collection Functions
5. Use RStats Provider and ggplot2 to Plot Data
6. Use BoxKite with Twitter
7. Deploy a Working Bot
Next steps1m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.