如何让behat知道使用哪个功能上下文?

how to let behat know which context to use?, because by default,there is this FeatureContext.php inside the features folder, whereby, when the behat runs, it will use that file while the .feature file is running (scenarios)...the problem is, if I have alot of modules to test, ofcourse, I cannot just lump all of those functions inside one FeatureContext.php file right?, I would want to name different contexes and different .feature files, so how to let behat know which context and .feature file to run?

this is the line of command that i use to fire behat

/export/home/project/htdocs/bdd/bin/behat --profile phantomjs-via-webdriver
查看全部
dpjhq00684
dpjhq00684
2014/07/24 03:52
  • selenium
  • phantomjs
  • php
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复