JoshKeegan / xRetry

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

@retry does not work with Scenario Outline #21

Closed kkdattaGIT closed 4 years ago

kkdattaGIT commented 4 years ago

If I add @retry for a Scenario Outline, we get

  1. it would only discover 1 test even when there are multiple "Examples"
  2. When the test is executed, we get {Test name} has multiple [Fact]-derived attributes

i.e: @retry Scenario Outline: COE Oversight User view State 11 And Select Given I call API for a user X Then The Current State is Examples: | SubmissionState | NextState | | State1 | StateX | | State2 | StateY |

JoshKeegan commented 4 years ago

@retry isn't yet implemented for scenario outlines. I've recently added xunit [Theory] support though which is needed for this. So I'll make Scenario Outline support next on the TODO list :)

kkdattaGIT commented 4 years ago

@retry isn't yet implemented for scenario outlines. I've recently added xunit [Theory] support though which is needed for this. So I'll make Scenario Outline support next on the TODO list :)

Thanks for looking into it!!

JoshKeegan commented 4 years ago

This is now available in v0.5.0, which I've just published on nuget. Let me know how you get on with it :)

kkdattaGIT commented 4 years ago

Thanks Josh. Worked like charm. Many thanks for your help.