JSFoo 2012
It’s like kung fu with JavaScript and objects! All about building full size apps in JavaScript.
Oct 2012
15 Mon
16 Tue
17 Wed
18 Thu
19 Fri 11:30 AM – 05:45 PM IST
20 Sat 11:30 AM – 05:15 PM IST
21 Sun
It’s like kung fu with JavaScript and objects! All about building full size apps in JavaScript.
Oct 2012
15 Mon
16 Tue
17 Wed
18 Thu
19 Fri 11:30 AM – 05:45 PM IST
20 Sat 11:30 AM – 05:15 PM IST
21 Sun
Manoj Kumar N
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.
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:
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.
Oct 2012
15 Mon
16 Tue
17 Wed
18 Thu
19 Fri 11:30 AM – 05:45 PM IST
20 Sat 11:30 AM – 05:15 PM IST
21 Sun
Hosted by
{{ gettext('Login to leave a comment') }}
{{ gettext('Post a comment…') }}{{ errorMsg }}
{{ gettext('No comments posted yet') }}