specflow error in migration to .net6
Hi Team,
I have migrated the specflow project from .netstandard 2.0 to .net 6. It works fine with .netstandard 2.0 but after i did the migration, when i run the unit test i got the below error.
Message:
No matching step definition found for one or more steps.
using System;
using TechTalk.SpecFlow;
namespace MyNamespace
{
[Binding]
public class StepDefinitions
{
private readonly ScenarioContext _scenarioContext;
public StepDefinitions(ScenarioContext scenarioContext)
{
_scenarioContext = scenarioContext;
}
[Given(@"the Logic App ""(.*)"" on ResourceGroup ""(.*)""")]
public void GivenTheLogicAppOnResourceGroup(string p0, string p1)
{
_scenarioContext.Pending();
}
The error appears for each statement from the feature file. Not sure what is the cause. Please can someone help really appreciate.
Thanks in advance
Please sign in to leave a comment.
Comments
0 comments