Closed SabotageAndi closed 1 year ago
@bayn Verify is working with this, but the naming of the files isn't right yet.
I think with https://github.com/VerifyTests/Verify/blob/main/docs/naming.md#derivepathinfo we could adjust the generation that it takes Feature title/Scenario title automatically.
Perhaps you can have a look at this?
Thanks @SabotageAndi - I'll take a look later this week. I really appreciate your help.
shouldnt specflow default to duplicating all attributes from *StepDefinitions
over to *.feature.cs
?
@SabotageAndi as a workaround. you can add a partial with the marker attribute to your project
namespace Example.Spec.Features;
[UsesVerify]
public partial class HtmlGenerationFeature
{
}
note you will need one per definition and the namespace and name have to match
shouldnt specflow default to duplicating all attributes from
*StepDefinitions
over to*.feature.cs
?
No, it doesn't. The Step definitions are executed at runtime. Some Gherkin tags (@some_tag
) are translated to attributes, but not all.
@SabotageAndi this looks very promesing, any plans on officially releasing this plugin?
Types of changes
Checklist: