JoshKeegan / xRetry

Retry running tests via Xunit and Specflow
MIT License
45 stars 14 forks source link

The "GenerateFeatureCodeBehindTask" failed unexpectedly (SpecFlow v4 beta) #199

Open cwcot opened 9 months ago

cwcot commented 9 months ago

Has anybody experienced this error - I have added the NuGet packages for xRetry. I am running a newer version of SpecFlow. Have tried to downgrade but this introduces other issues in my project. If this is due to SpecFlow version is support for SpecFlow 4 coming?

    <PackageReference Include="specflow" Version="4.0.31-beta" />
    <PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="4.0.31-beta" />
    <PackageReference Include="specflow.xunit" Version="4.0.31-beta" />
    <PackageReference Include="xRetry" Version="1.9.0" />
    <PackageReference Include="xRetry.SpecFlow" Version="1.9.0" />
JoshKeegan commented 9 months ago

Hi, This will be due to the beta SpecFlow v4 you're using which isn't supported by xRetry.

Hopefully you're already aware, but SpecFlow development has stopped and the community are waiting to find out the future of the project. I'm sure it will continue in some form, either officially or as a fork, but until the future is clear I don't know if v4 will be released. You can follow the discussion on future development of SpecFlow here

cwcot commented 9 months ago

Thanks Josh, I was unaware. Appreciate the update :)