Testing Precompiled Azure Functions: Deep Dive
Azure Functions and Visual Studio enable the easy development and execution of C# code in the cloud. This course will teach you how to implement tests at different levels of granularity to ensure your Azure Functions work as expected.
What you'll learn
Even though Azure Functions offer quick deployment of C# code to the cloud, it does not mean those functions should be published without first testing them. In this course, Testing Precompiled Azure Functions: Deep Dive, you'll learn how to write tests for your Azure Functions and workflows. First, you'll learn how to unit test core business logic and then how to test (and make testable) your function run methods. Next, you'll then discover how to use mocked function dependencies in your tests. Finally, you'll explore how to implement end to end function workflow tests. By the end of this course, you'll know how to ensure your Azure Functions are working as expected by implementing tests at different levels of granularity.
Table of contents
- Version Check 0m
- Introduction 1m
- Course Outline 1m
- Suggested Course Prerequisite 1m
- An Overview of Testing Azure Functions 2m
- Potential Challenges 2m
- Demo App Overview 1m
- Required Tools 2m
- Creating a Function App in the Azure Portal 2m
- Creating the Function and Test Projects in Visual Studio 3m
- Publishing a Test Function 1m
- Summary 1m
- Introduction 2m
- Creating the MakeApplication Function 4m
- Unit Testing the MakeApplication Function 5m
- Using a Mock TraceWriter 2m
- Replacing the TraceWriter with ILogger in Azure Functions 1m
- Viewing ILogger Output in Application Insights 3m
- Creating the ScoreApplication Function 4m
- Testing the ScoreApplication Function 3m
- Creating and Testing the ProcessAcceptedApplication Function 3m
- Summary 2m