SpecFlowOSS / SpecFlow

#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
https://www.specflow.org/
Other
2.24k stars 754 forks source link

appsettings.json is not loading into IConfiguration #2533

Open rgudkov-uss opened 2 years ago

rgudkov-uss commented 2 years ago

SpecFlow Version

3

Which test runner are you using?

SpecFlow+ Runner

Test Runner Version Number

3.9.7

.NET Implementation

.NET Core 3.1

Project Format of the SpecFlow project

Sdk-style project format

.feature.cs files are generated using

SpecFlow.Tools.MsBuild.Generation NuGet package

Test Execution Method

Visual Studio Test Explorer

SpecFlow Section in app.config or content of specflow.json

No response

Issue Description

I took .Net 6 ASP NET Core API example (https://github.com/SpecFlowOSS/SpecFlow-Examples/tree/master/.NET%206/ASP.NET%20Core%20API) and converted it to .Net Core 3.1.

Problem occurs in .Net core 3.1, but works in .Net 6 example

Steps to Reproduce

Once stopped on the breakpoint, you can see that releaseLabel variable is null, while it should have value

Link to Repro Project

https://github.com/rgudkov-uss/specflow-api-core-31