After updating SpecFlow nuget packages, I started getting this error for some scenarios. For example, for this:
Scenario Outline: Scenario1
Given Step1
When Step2
Then Condition1
I would get
error : (135:1): Scenario Outline 'Scenario1' has no examples defined
Turns out changing Scenario Outline
to just Scenario
fixes the issue.
Scenario: Scenario1
Given Step1
When Step2
Then Condition1
I guess in the past SpecFlow allowed you to use the Scenario Outline
keyword even if no Examples are specified, but they’ve changed that in more recent version.s