JSFoo 2012

It’s like kung fu with JavaScript and objects! All about building full size apps in JavaScript.

About JSFoo

JSFoo is India’s only national JavaScript conference series, with editions in Bangalore, Pune and Chennai. This year’s Bangalore edition is a flagship two day event.

Event theme

The theme for this second edition in Bangalore is JavaScript everywhere. Tell us how you’re pushing the limits of what can be done with JavaScript on the server, in embedded devices, and in its original home in the browser. If you have built something that is popular (even if proprietary), tell us the story of how you did it. Got graying hair? Help us younger folk attain the zen of JS. Tell us about best practices in code and in working style, of how to organize our files and how to assemble crack JS teams.

Commitment to open source

HasGeek believes in open source as the binding force of our community. If you are describing a piece of technology, we’d like it to be available under a permissive open source license.

If your software is commercially licensed or available under a combination of commercial and restrictive open source licenses (such as the various forms of the GPL), please consider picking up a sponsorship. We recognize that there are valid reasons for commercial licensing, but ask that you support us in return for giving you an audience. Your session will be marked on the schedule as a sponsored session.

Speaking submissions

You can submit a proposal to speak at JSFoo via the submission funnel below. Please describe your proposal in as much detail as possible. Detail is important if you’d like to be voted up into the schedule. In particular, we want to hear why you are the best person to be delivering a talk on your proposed topic.

Your submission will be up for public voting for up to a month before the event. For the final tally, we will only consider votes from ticket holders, as a way to ensure participants get exactly what they pay for.

This event also has a Program Committee of selected individuals from the community whose votes have additional weight, and whose charge is to help you refine your proposal and prepare it for the event. The Program Committee is responsible for ensuring that the final schedule meets the high quality standards that participants expect.

Making a funnel submission does not guarantee final selection. Selected speakers will get a free ticket to both days of the event (limited to one speaker per proposal). Proposers whose talks are not on the final schedule will be able to purchase tickets at the prevailing rate for the day on which they made their proposal.

Tickets: To attend JSFoo 2012, you can purchase tickets from http://jsfoo-2012.doattend.com

Hosted by

JSFoo is a forum for discussing UI engineering; fullstack development; web applications engineering, performance, security and design; accessibility; and latest developments in #JavaScript. Follow JSFoo on Twitter more

Manoj Kumar N

@nmanojk

Test Drive your JavaScript code using JSTestDriver, Jasmine and your Browser

Submitted Aug 25, 2012

We assume you don’t want to keep pulling your hair out in the middle of the night trying to “debug” a production issue in your javascript code. If that is the case, then TDD and test automation should be your close allies.

In this talk, we’ll introduce Jasmine and JSTestDriver. With the help of a demo, we’ll show you how to test drive your Javascript code and run your tests in “real” environments - i.e. inside all of your supported browsers.

Outline

Here’s a popular list of unit testing frameworks for Javascript: QUnit, JSUnit and YUITest. All of these can be used for test driving your JS code.

But let’s take this one step further - to Behaviour Driven Development. With BDD, you get the added advantage of “specing” your tests with a business driven mindset - rather than just thinking about your code.

Jasmine is the de-facto standard for BDD in Javascript. Now let’s assume you’ve configured Jasmine correctly and that you’ve written your specs. But how do you run them? Well, that depends on whether you need access to a DOM or not.

Assuming that do need access to a DOM, you can either rely on your faithful browser itself or go for a headless Webkit like PhantomJS. We prefer to test in a real environment - and that’s exactly what JSTestDriver allows you to do.

In this talk, we will demo the following:

  • Writing DOM-less tests using Jasmine
  • Running the tests using JSTestDriver - across multiple browsers simultaneously. Including mobile browsers.
  • Mocking AJAX requests using Sinon.js
  • Testing DOM elements using fixtures
  • Integration of these tests with a CI server (we’ll be using Jenkins)

Speaker bio

I’m a Front End Engineer at Multunus Software Pvt Ltd, Bengaluru. My passions include HTML5, CSS3, Backbone.js and Test Driven Javascript development. Besides, I also like doing designs using Photoshop.

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

JSFoo is a forum for discussing UI engineering; fullstack development; web applications engineering, performance, security and design; accessibility; and latest developments in #JavaScript. Follow JSFoo on Twitter more