Cucumber alternative for .NET

前端 未结 8 537
说谎
说谎 2020-12-07 11:52

Quick one, has anyone come across a library similar to Ruby\'s cucumber (a human readable DSL for defining use case stories that can be tested against) in the .NET sphere? <

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 12:40

    BDD in plain English can be done with Concordion.NET. The specifications of the expected behavior are written in HTML.

    Any sentences of any structure can be used for Concordion.NET tests. For example it is not necessary to write a sentence such as "given a bank account with a balance of 10$, when a withdrawal of 20$ is initiated, the transaction fails". Instead any type of sentence could be used such as "a transaction of 20$ fails, if the account contains not enough balance of 10$".

    Concordion.NET tests are executed with the help of NUnit, which is integrated in many different environments: https://github.com/concordion/concordion-net

提交回复
热议问题