Test Azure Functions using Azure DevOps Testing plan

Sairam Ganji 46 Reputation points
2023-01-05T08:28:31.41+00:00

Hi Team,
Here, I want to testing Azure Functions using Azure DevOps Test Pipelines. May I know if it is possible to do so. I have tried testing it using UNIT Testing but wanted to check if we can use the Test plans in Azure DevOps for the same
Thanks in Advance

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,469 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Arun Siripuram 886 Reputation points
    2023-01-05T08:33:21.16+00:00

    @Sairam Ganji

    Thank you for reaching out to Microsoft Q&A

    Yes, it is possible to use Azure DevOps Test Plans to test Azure Functions. Azure DevOps Test Plans provide a central place to track the testing progress and results of your projects.

    To use Azure DevOps Test Plans for testing Azure Functions, you can follow these steps:

    1. Create a new test plan in Azure DevOps and select the project in which you want to create the test plan.
    2. Define the test cases for your Azure Functions. You can create manual test cases for testing your functions manually, or you can create automated test cases using a testing framework such as MSTest, NUnit, or xUnit.
    3. Create a build pipeline in Azure DevOps to build and deploy your Azure Functions. You can use the Azure Functions task in the pipeline to deploy your functions to Azure.
    4. Create a release pipeline in Azure DevOps to run your test cases. You can use the Visual Studio Test task in the pipeline to run your test cases.
    5. Run the release pipeline to execute your test cases and track the testing progress and results in the test plan.

    Please refer following links for more information

    https://www.azuredevopslabs.com/labs/vstsextend/azurefunctions/
    https://learn.microsoft.com/en-us/azure/azure-functions/functions-how-to-azure-devops?tabs=dotnet-core%2Cyaml%2Ccsharp

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

  2. Sairam Ganji 46 Reputation points
    2023-01-13T06:08:27.23+00:00

    Hi

    Any Update on below below issue?

    I manage to associate UNIT TEST CASES with TEST PLAN's Test Case but seeing below issue. 277888-image.png

    0{count} votes

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.