Azure / Azure/azure-functions-dotnet-worker

Add interface level tests for FunctionMetadataGenerator and SourceGenerator

Open
#1,544 0 comments 0 reactions 0 assignees View on GitHub
team-issue
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

Currently, we have separate set of tests for both Metadata generators - [FunctionMetadataGenerator](https://github.com/Azure/azure-functions-dotnet-worker/tree/main/test/FunctionMetadataGeneratorTests), [SourceGenerator](https://github.com/Azure/azure-functions-dotnet-worker/tree/main/test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests). We need interface level tests for those functionalities which should exist in both of them. This will also help in keeping consistency between them if we are changing behavior in one.

Contributor guide

No contributing guide indexed for this repository

Research direction

Compare the existing tests in test/FunctionMetadataGeneratorTests and test/Sdk.Generator.Tests/FunctionMetadataProviderGeneratorTests. Identify the functionality both generators are expected to provide, then design interface-level coverage that exercises those shared expectations. Done means the common behavior is tested consistently across both generators.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.