Snippets tagged bdd

  • xBehave QuickStart sample

    xBehave QuickStart sample direct conversion to F# from C#: https://github.com/xbehave/xbehave.net/wiki/Quickstart

    1 people like this

    Posted: 10 years ago by Phillip Trelford

  • xBehave Quickstart sample with custom operator

    xBehave Quickstart sample conversion in F# using a custom operator: https://github.com/xbehave/xbehave.net/wiki/Quickstart https://github.com/xbehave/xbehave.net/wiki/Scenarios-with-examples

    1 people like this

    Posted: 10 years ago by Phillip Trelford

  • BDD without a framework

    A Simple port of the Calculator BDD sample from http://cukes.info. Most BDD frameworks require attributes and shared state to run a test (I'm looking at you specflow!) As the test suite grows, the accidental complexity of different steps initialising (or not) class state becomes a huge problem, resulting in fragile tests. By accumulating state until the assertion, the tests become strongly typed and resilient to change. F#'s backtick methods combined with continuations and lightweight syntax can be taken to extremes to produce a lightweight internal DSL, with efficient results.

    16 people like this

    Posted: 9 years ago by Neil Danson