These are the slides from my talk at NYC Node. The presentation is an overview of full-stack integration testing and how it can be more efficient and faster with Node.js
el: $("#myapp"), initialize: function() { var view = new PersonsView({ collection: new Persons() }); view.collection.fetch(); }, /* ... */ }); var App = new AppView; }); WHAT IF I NEVER CALL RENDER?
figure out who is awesome As a visitor I want to see a list of awesome persons Scenario: viewing a list of persons Given "/api/v1/users" returns the following JSON response: """ [{"name": "swift"}, {"name": "john"}] """ When I visit the home page Then I should see 2 persons Exhibit C
/^I visit the home page$/, (next) -> @visit "/", next @Then /^I should see (\d+) persons$/, (count, next) -> persons = @browser.queryAll(".persons li") assert.lengthOf(persons, parseInt(count)) next() UNDER THE HOOD