Meta Refresh 2015: Delhi Run-up

Data-centric mobile web design

saptarshi chatterjee

@sapy

How to automatically generate test for your JavaScript file

Submitted Mar 10, 2015

Automate testcase file generation for javaScript .Generates Jasmine test for your angularJs file, Most of these auto generated custom test cases will actually be passing and it will take file’s code coverage from 0% to 40%-50% without writing a single line of code, ain’t that freaking awesome!!!

Outline

AngularJS test generator. It’s an yeoman generator. Generates customized Jasmine test for your angularJs file [Right now only works for controllers . test generator for directives and services are under construction...]

[x] Takes path of the angularJs file to be tested as input.
[x] Parses the file and generates a test file.
[x] Be ready for surprise - you will be amazed to see that most of these auto generated test are actually passing , and you need to edit rest, to make them pass (Obviously ).
[x] this auto generated test file takes your code coverage for that file from 0% to 40-50% without writing a single line of code . Now that’s Freaking awesome!!!

Requirements

Laptops and wifi.

Speaker bio

https://www.linkedin.com/pub/saptarshi-chatterjee/13/226/55a

Comments

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

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

{{ errorMsg }}

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

Hosted by

Meta Refresh is an umbrella forum for conversations about different aspects of design and product including: UX and interaction design CMS, content management, publishing and content marketing Information architecture more