KellysonRN / azure-functions-labs

.NET template for get started a azure function with TDD and github actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure Functions Lab

Overview

This will exmaple to create new Azure Functions with UnitTest

Features

  • C#
  • Azure Functions
  • XUnit
  • GitHub Actions

Requirements

The project requires .NET 6.0

Compatible IDEs

Tested on:

  • Visual Studio Code (1.74.3)

Useful commands

From the terminal/shell/command line tool, use the following commands to build, test and run the API.

Build the project

$ dotnet build

Run the tests

$ dotnet test

Useful commands to test Azure Functions locally more info

# Run functions locally
$ func start

# Deploy project files
$ func azure functionapp publish <FunctionAppName>

Code coverage

# install dotnet coverage
$ dotnet tool install --global dotnet-coverage

# running code coverage
# from /src directory
$ dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml'

Integration test

About

.NET template for get started a azure function with TDD and github actions

License:MIT License


Languages

Language:C# 100.0%