有谁知道用于C++的BDD框架,该框架允许执行(Gherkin)场景,例如:
Feature: Table support in nbehave
Scenario: a table
Given a list of people:
|Name |Country|
|Morgan |Sweden |
|Jimmy |Sweden |
|Jimmy |USA |
When I search for people from Sweden
Then I should find:
|Name |Country|
|Morgan|Sweden |
|Jimmy |Sweden |
最佳答案
我找到了一个名为Cukebins的项目:https://github.com/paoloambrosio/cukebins/wiki/Release-0.2。我还没有尝试过,也不知道它的效果如何。 重命名为Cucumber-CPP,并移至https://github.com/cucumber/cucumber-cpp/
这里也有一些替代方案的讨论:http://groups.google.com/group/cukes/browse_thread/thread/1f496aba050a22c3/145b871678e2bbbc