This project is read-only.

Mapping mulitple features to one class

Mar 27, 2013 at 4:34 PM
Is it possible to map multiple features to one class?

I am using Resharper to run my tests and currently i've only got one feature file. I was wondering is it possible to have multiple features mapping to one class. Then in you test you could call which feature you want to be executed first, 2nd etc.....
Mar 28, 2013 at 9:36 AM
Yes you can put steps for multiple features in the same class if you like.
You can put all steps in one class or even each step in its own class (dont recommend that one though).
If you need to keep state between steps/scenarios use FeatureContext and/or ScenarioContext.