Skip to content

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

License

Notifications You must be signed in to change notification settings

KellysonRN/azure-functions-labs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Languages