0

I am trying to run tests using SpecRun. I would like to run them using the .feature file, but so far I have not succeeded :(

I am using this as a filter:

/filter:testpath:Feature:FeatureFile.feature

but no tests are run.

How can I do to specify a .feature file in SpecRun?

Thanks

1 Answers1

0

Documentation for filters are here: http://specflow.org/plus/documentation/Filter/

For your case you need to specify the parameter this way:

/filter:testpath:Feature:<FeatureTitle>

<FeatureTitle> is the title of your feature in the file. Not the file name.


Full Disclosure: I am one of the SpecFlow & SpecFlow+ developers.

Andreas Willich
  • 5,665
  • 3
  • 15
  • 22
  • Thanks for the answer. I already knew how to run test with the FeatureTitle, but I wanted to know if it was possible to pass the name of the file as an option – user3034422 Sep 06 '17 at 08:34
  • Sorry, I misunderstood your question. It is currently not possible to filter by filename. But best practice is, that the feature title and file name is the same. – Andreas Willich Sep 06 '17 at 09:17
  • Thanks anyways. I appreciate you clarified this for me :) – user3034422 Sep 06 '17 at 10:47