With the huge growth in popularity of AngularJS, it’s time for a dedicated event looking at AngularJS in depth.
The AngularJS Miniconf is a spin-off event from Meta Refresh 2014 and will be hosted one day prior to the Meta Refresh workshops at the same venue: The Energy and Resources Institute, Domlur, Bangalore.
Miniconfs are single day, single track events on upcoming topics for a limited audience (80 max). They are participant-supported and low budget, so there’s no funding for speaker travel expenses.
We’re looking for talks on original work around AngularJS. As a spin-off event, talks will be selected by the Meta Refresh editorial panel by combining panel votes with participant votes (you may vote as a general member of the public, but your vote is only counted when you buy a ticket using an email address that is listed on your profile).
Test Driven Angular JS Development
This workshop is for giving a head start on faster, maintainable and behavioural tests for AngularJS using the Jasmine Test Framework and Karma test runner. At the end of the session, the attendees should be able to:
- Learn about basic unit testing.
- Use Jasmine and Karma for writing and running tests.
- Write tests for Angular Routes, Directives, Factories and Controllers.
- Get an overview of Grunt and Bower.
Writing tests has definite benefits especially in long term. But if we don’t have the right environment and tool set, it can be less fun and frustrating too. In this workshop we will be focusing on setting up the right environment with the right tools which makes test driven development enjoyable and sustainable.
Unit testing is made really easy in AngularJS because of its dependency injection, which allows us to isolate different parts of the system and write unit tests for each of them. We will be using Jasmine as the testing framework and Karma as the test runner.
Jasmine is the most popular unit testing framework for writing behavioural tests. It resembles RSpec, the popular testing framework in the Ruby On Rails world. It comes up with set of helper methods which wraps out all the mundane things, especially the test setup, and helps us focus on testing. Also, it has a pretty clean syntax which helps learning faster.
Karma is a test runner which basically facilitates running tests in our preferred environment, a real browser or a headless browser like PhantomJS. The best part is that it will blend well with most of the major Continuous Integration servers such as Jenkins, Travis etc..
We will also cover tools such as Bower, Grunt, which helps us to run the tests frequently to give us quick and frequent feedback, which is mandatory for unit testing.
Angular JS makes it easy to write unit tests and acceptance tests, But in this workshop we will be covering only unit testing in Angular.
- Familiarity with Angular JS and Test Driven Development is Preferred.
- Laptop with your preferred IDE. We will be using Sublime.
- NG-boilerplage - We prefer this to kickstarting the AngularJS Dev setup including the tools required for TDD
Speaker bio #