Can I use multiple step definition files with SpecFlow?
        Posted  
        
            by Roger Lipscombe
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Roger Lipscombe
        
        
        
        Published on 2010-05-31T12:50:01Z
        Indexed on 
            2010/05/31
            12:53 UTC
        
        
        Read the original article
        Hit count: 394
        
specflow
I'm using SpecFlow to do some BDD-style testing. Some of my features are UI tests, so they use WatiN. Some aren't UI tests, so they don't.
At the moment, I have a single StepDefinitions.cs file, covering all of my features. I have a BeforeScenario step that initializes WatiN. This means that all of my tests start up Internet Explorer, whether they need it or not.
Is there any way in SpecFlow to have a particular feature file associated with a particular set of step definitions? Or am I approaching this from the wrong angle?
© Stack Overflow or respective owner