Azure-Samples / Azure-Samples/functions-quickstart-dotnet-azd

Unit tests needed

Open
#20 0 comments 1 reaction 2 assignees Claimed by @paulyuk View on GitHub
documentation enhancement
Dominant language
Bicep
Stars
30
Forks
42
PR merge metrics
No merged PRs in 30d

Description

We need basic unit tests for the http functions shown here in the quickstart. Ensure at least the primary functionality of the httpget and httppost methods are covered, and any common error handling.

I want a spec to be written first in a .md file. I will review this with @fabiocav and team. Go ahead and attempt to implement it as well, but know that we will use the spec as source of truth, and make more iterations.

Other base requirements:
- Assume XUnit
- Make a list of suggested additional unit tests
- Fetch this [asp.net unit testing guidance ](https://learn.microsoft.com/en-us/aspnet/core/mvc/controllers/testing?view=aspnetcore-9.0#unit-testing-controllers)and stay as close as possible to following the guidance
- Run and validate the unit tests

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.