You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I invoke SpecFlowStepDefinitionReport similar to the snippet below:
Task("SpecflowStepDefinitionReport")
.Does(() => {
var outputHtml = $"{Environment.CurrentDirectory}/SpecFlowStepDefinitionReport.html";
var reportingSettings = new SpecFlowStepDefinitionReportSettings
{
BinFolder = $"{Environment.CurrentDirectory}/{ParseProjectName(Projects.AcceptanceTests)}/bin/Debug",
Out = outputHtml
};
SpecFlowStepDefinitionReport(Projects.AcceptanceTests, reportingSettings);
var htmlContents = FileReadText(outputHtml);
if (htmlContents.Contains("<tr class=\"noInstances\">"))
{
throw new CakeException($"Step definition is not present in any feature file. Please see {outputHtml}");
}
else if (htmlContents.Contains("<tr class=\"noBinding\">"))
{
throw new CakeException($"Scenario step is not defined (implemented). Please see {outputHtml}");
}
});
What You Are Seeing?
When I invoke
SpecFlowStepDefinitionReport
similar to the snippet below:It fails with the following error:
This started happening since upgrading Specflow to 2.4.0, and I assume it is caused by SpecFlowOSS/SpecFlow#1112
What is Expected?
It should work just as it used to work before 2.4.0 (e.g. 2.3.2)
What version of Cake are you using?
0.26.0 / 0.31.0
Are you running on a 32 or 64 bit system?
64
What environment are you running on? Windows? Linux? Mac?
macOS
Are you running on a CI Server? If so, which one?
Local and on CI
The text was updated successfully, but these errors were encountered: