Sleipnir: BDD-style framework for Swift
github.com
Sleipnir: BDD-style framework for Swift
1–10 of 16 posts
Re: Sleipnir: BDD-style framework for Swift
#2Re: Sleipnir: BDD-style framework for Swift
#3Re: Sleipnir: BDD-style framework for Swift
#4Should be "BDD-style framework for swift http://railsware.com/blog/2014/07/04/bdd-style-testing-in-sw...
Re: Sleipnir: BDD-style framework for Swift
#5Typo in the page title of "BDD-style framerwork for swift http://railsware.com/blog/2014/07/04/bdd-style-testing-in-sw... Should be "BDD-style framework for swift http://railsware.com/blog/2014/07/04/bdd-style-testing-in-sw...
Re: Sleipnir: BDD-style framework for Swift
#6For anyone curious: Behavior-Driven Development (BDD) is a business logic alternative to Test-Driven Development (TDD). It uses more of a conversational tone to spell out tests, so you write what you would like the app to do rather than sitting there scratching your head trying to figure out which tests to write. So it places emphasis on the "what" you want the program to do, and fill in the "how" behind the scenes.…
As an example, I practice BDD but I use MiniTest, a "TDD" testing library.
Re: Sleipnir: BDD-style framework for Swift
#7For anyone curious: Behavior-Driven Development (BDD) is a business logic alternative to Test-Driven Development (TDD). It uses more of a conversational tone to spell out tests, so you write what you would like the app to do rather than sitting there scratching your head trying to figure out which tests to write. So it places emphasis on the "what" you want the program to do, and fill in the "how" behind the scenes.…
Oh, boy. As usual anyone trying to define the difference between BDD and TDD gets it wrong. The difference between TDD and BDD isn't the tone in which you describe your test examples. The difference lies in the depth of the layer you start developing a system (or subsystem) at. Some refer to this as Outside-In versus Inside-Out. BDD and TDD have nothing to do with DSLs or the tone in which you describe your test exam…
TDD doesn't care how you write the test since it's about verifying states. Kent mostly used it for inside-out testing and never uses mocks, but sometimes plays with middle-out or outside-in interactions using programmer tests, fake objects, and stubs.
Only BDD was about specifying the test as a behavioural description in a DSL, and is always outside-in. It's pretty clear cut.
Re: Sleipnir: BDD-style framework for Swift
#8Re: Sleipnir: BDD-style framework for Swift
#9I just want to say: Awesome logo.
Re: Sleipnir: BDD-style framework for Swift
#10 func Describe("The system I want to Test"){
When("I click the red button")
Then("I should see the light turn on")
And("I should see 4 lights")
}
func Step("I click the red button"){
buttons["red"].click
}
func Step("I should see the light turn on"){
lights.on.should().be_true
}
func Step("I should see (\d+) lights"){
lights.count.should().be(4)
}