by Shreyank Gupta (@shreyankg) on Thursday, August 22, 2013

+23
Vote on this proposal
Status: Submitted
Section
Crisp Talk

Technical level
Intermediate

Objective

Writing client-side Unittests in Jasmine, using CoffeeScript; run them using PhantomJS and integrate with a Jenkins instance.

Description

Getting client side JavaScript tests runs integrated with a Continuous Integration server has been a pain, mostly because JavaScript tests run on the browser.

The idea is to emulate the browser, so that test run results can be understood by a CI system.

PhantomJS can be used to solve that problem.

In this talk we will see how we can use PhantomJS to run Jasmine unit-tests written in CoffeeScript, and integrate it with a Jenkins CI instance.

Requirements

Understanding of JavaScript (optionally CoffeeScript), Unittests and Continuous Integration.

Speaker bio

Shreyank Gupta works as a Software Engineer at Red Hat, Pune.

Shreyank started off his career as a web-developer and has hands-on experience in Ruby, Python and JavaScript, although he admits he is far from a polyglot. You must have noticed him talking at either RubyConf India, Pycon India, JSFoo or some other OpenSource conference.