Skip to content

This provides a sample app and test for Azure Functions integration testing in a CI/CD pipeline

License

Notifications You must be signed in to change notification settings

devkimchi/azure-functions-integration-testing

Repository files navigation

Azure Functions Integration Testing

This provides a sample app and test for Azure Functions integration testing in a CI/CD pipeline.

Prerequisites

Getting Started

Build Solution

dotnet restore .
dotnet build .

Run Azure Functions App as a Background Process

  • Run the function app as a background process in bash shell

    # Bash
    cd ./src/FunctionApp
    
    func start &
    bg
  • Run the function app as a background process in PowerShell (Non-Windows)

    # PowerShell
    cd ./src/FunctionApp
    
    Start-Process -NoNewWindow func @("start","--verbose","false")
  • Run the function app as a background process in PowerShell (Windows)

    # PowerShell
    cd ./src/FunctionApp
    
    $func = $(Get-Command func).Source.Replace(".ps1", ".cmd")
    Start-Process -NoNewWindow "$func" @("start","--verbose","false")

Run Test Project

cd ./test/FunctionApp.Tests

dotnet test

About

This provides a sample app and test for Azure Functions integration testing in a CI/CD pipeline

Resources

License

Stars

Watchers

Forks

Languages