Showing posts with label bdd. Show all posts
Showing posts with label bdd. Show all posts

Friday, May 4, 2012

How do I verify jQuery AJAX events with Jasmine?


I am trying to use Jasmine to write some BDD specs for basic jQuery AJAX requests. I am currently using Jasmine in standalone mode (i.e. through SpecRunner.html). I have configured SpecRunner to load jquery and other .js files. Any ideas why the following doesn't work? has_returned does not become true, even thought the "yuppi!" alert shows up fine.

Monday, April 16, 2012

Eat, Sleep and Breathe Unit Testing/TDD/BDD


I do write unit tests while writing APIs and core functionalities. But I want to be the cool fanboy who eats, sleeps and breathes TDD and BDD. What's the best way to get started with TDD/BDD the right way? Any books, resources, frameworks, best practices?