0

According to Updating the name of SpecFlow scenario outline variations If I write an additional column as the first column, then the SpecFlow code generator will use the value from that column to name the test method

I have written a Specflow scenario outline like this:

enter image description here

but why the name of test scenarios still are "Example" not like "Example_odd-number".

My specflow version is 2.2.0, Nunit version is 3.7.1.

enter image description here

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Yu Jia
  • 323
  • 1
  • 5
  • 14
  • From the Specflow wiki: "If the unit test framework supports it" and "Hint: In certain cases, ...SpecFlow is unable to generate the correct parameter signatures for unit test logic methods without a little help." Start there. – Sam Aug 30 '17 at 17:14
  • Could you post parts of the code-behind file of this scenario? – Andreas Willich Sep 05 '17 at 08:56

1 Answers1

1

It's just the way how 2.2 works now.

Set the following and re-generate the feature files:

<specFlow>
  <generator 
      allowRowTests="false" />
</specFlow>
unickq
  • 1,497
  • 12
  • 18