Skip to main content

feature.cs file generation can we control the function name

Comments

1 comment

  • Krishna N

    I am able to make the change in the code to get the test case names as per our requirement. Can someone help on how to get this change added? If others do not need this change, can this be added with a parameter? 

    TechTalk.SpecFlow.Generator\Generation\UnitTestMethodGenerator.cs

    methodName = string.IsNullOrEmpty(exampleSetIdentifier)
                    //? $"_{methodName}_{variantNameIdentifier}"
                    //: $"_{methodName}_{exampleSetIdentifier}_{variantNameIdentifier}";
                    ? $"_{variantNameIdentifier}_{methodName}"
                    : $"_{variantNameIdentifier}_{exampleSetIdentifier}_{methodName}";

    0

Please sign in to leave a comment.

Powered by Zendesk