20 April 2014

The Ruby Reflector

Topic

BDD

  Source Favicon
By Adron Hall of New Relic 16 days ago.
Email

Should I just write some tests? If so, should they be behavior-driven development ( BDD) based tests or test-driven development ( TDD) based tests? Maybe I should take an entirely different approach?

Every time I start working on a new project, I reevaluate what my practices should be. Since I know I'll need a number of things — fake data, a website, and to display that fake data on the website — I could easily write that up. But my goal here is to explain some practices that developers …

newrelic.com Read
  Source Favicon
By Chase Douglas of New Relic 1 month ago.
Email

Next on our plate was to choose a test runner. None of us on our team are fans of BDD style testing; we wanted a very lean test runner and library with simple assertions and standards-compliant machine-readable output. This led us to use tape as our test framework, and we have been quite pleased with it. Our tests run in Jenkins , and the TAP Jenkins plugin reads our test output perfectly.

This setup worked great for us in the beginning, but we also needed …

newrelic.com Read
  Source Favicon
Email

…works as expected. Because we wanted to use Mocha with Chai BDD matchers instead of QUnit , the initial test setup was a bit complex but after using Konacha with a Mocha adapter , it was smooth sailing. The extra setup time for Mocha over QUnit was definitely worth it. The syntax has a much more readable format. describe 'AggregateStatsController', -> describe 'summed properties', -> beforeEach -> stats …

robots.thoughtbot.com Read
  Source Favicon
By Nick Plante of Zerosum Dirt(nap) 3 months ago.
Email

Jasmine's syntax should be very familiar to anyone who does RSpec BDD work, and the work we've done in our spec helper really cleans up the beforeEach setup that's required in each individual controller spec. These particular tests make heavy use of ngMock, which you won't always need to use, and the calls to flush() are required to fulfill pending requests, preserving the async nature of the backend but allowing the tests to execute synchronously.

Testing Continuously…

blog.zerosum.org Read
  Source Favicon
By Matt of Tea-Driven Development 5 months ago.
Email

BDD is powerful stuff, and it's much more powerful when your product owner understands the benefits .

We love having product owners at BDD Kickstart . The first day is all about the collaborative aspects of BDD where we learn how to break down and describe requirements using examples. We find that product owners really enjoy it.

That's why we're announcing a special promotion for our next public course in London. Use the discount code " BYPO" …

blog.mattwynne.net Read
  Source Favicon
By Matt of Tea-Driven Development 5 months ago.
Email

I think balance is important. Whenever I teach people about BDD or automated testing , we make a list of the costs and benefits of test automation.

The lists typically look something like this:

Benefits:

thorough analysis of a requirement

confidence to refactor

quick feedback about defects

repeatable test

living / trustworthy documentation

frees up manual testers for more interesting exploratory testing

Costs:

time spent leaning how to write a test

time spent writing the test

blog.mattwynne.net Read
  Source Favicon
By Adam Keys of The Real Adam 8 months ago.
Email

Naming things is hard. Witness things that developers have named and then struggle to explain because words and people are weird:

TDD sounds like it's about testing, but it's really a design technique.

BDD sounds like it's about what code does, but it's really a communication discipline.

Outside-in development sounds like a way to discover the design of software, but it's really a technique for building software using a fractal todo list.

therealadam.com Read
  Source Favicon
By livelessons of Videos related to 'Ruby on Rails demo' 9 months ago.
Email

…pipeline, including Sprockets & Sass; behavior-driven development ( BDD) with Capybara & Rspec; better automated testing with Guard & Spork; roll your own authentication with has_secure_password; and an introduction to Gherkin & Cucumber. These focused video lessons help you learn crucial new skills fast— and put them to work immediately! Watch top Rails developer Michael Hartl guide you through building a complete application using today's best practices …

youtube.com Read
  Source Favicon
By Assaf of Labnotes 1 year ago.
Email

This is the single most powerful behavioural shift I have seen in teams adopting BDD. Simply by getting the business users, the analysts, the testers and the developers to adopt this vocabulary of "given/when/then", they discover that a world of ambiguity falls away.

§ Old people icons: floppy disks, carbon copy, radio buttons and other icons that no longer make any sense .

§ Top 10 Weird APIs , serving your Chunk Norris facts, making fake calls, and …

blog.labnotes.org Read
  Source Favicon
On Plasticx Blog over 1 year ago.
Email

I made a presentation on Refactoring & BDD at Seattle.rb back on 10/09/2012. I put my slides and notes from the presentation up on Speaker Deck.

Seattle.rb - Refactoring & BDD Presentation

Some quick takeaways ...

Problem Domain

The less your problem is understood, the more complicated your solution is likely to be. This is one of the reasons why we refactor code - we increase our understanding of the problem domain and increase our abilities to apply solutions to the domain as time goes by.

blog.mondragon.cc Read