C ++的可执行方案(BDD)

时间:2011-06-17 01:58:47

标签: c++ bdd

有没有人知道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 |

1 个答案:

答案 0 :(得分:5)

我找到了一个名为 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