Next-generation 
JavaScript Testing 
Vlad Filippov // jQuery Conference 2014
@vladikoff
2009 
“JavaScript Testing Does Not Scale.” 
– John Resig, 2009 
http://ejohn.org/blog/javascript-testing-does-not-scale/
2014
Firefox Accounts
The Intern 
@ theintern.io 
Maintained by
npm install intern
Unit Testing
Demo
New in 
Intern 2.1
Functional Testing
Cross-platform consistency to the Selenium WebDriver API. 
http://theintern.github.io/leadfoot/ 
Supports: 
• InternetExplorerDriver 
• FirefoxDriver 
• ChromeDriver 
• SafariDriver 
• Selendroid 
• ios-driver
Basic 
Functional Test 
with the Intern
Basic 
Functional Test 
with the Intern
Demo
! 
Abstraction library for WebDriver service tunnels 
https://theintern.github.io/digdug/ 
SauceLabs, TestingBot, BrowserStack
Demo
Running CI Tests - Large App 
Pull Request Testing 
Install Project 
JSHint, JSCS, etc. 
Unit Tests 
Limited 
Functional Tests 
Stage Testing 
Install Project 
Full 
Functional Tests 
with Xvfb
More than just tests!
https://github.com/gotwarlost/istanbul
Capabilities 
• Custom Firefox profile: 
• ChromeDriver homepage: https://sites.google.com/a/ 
chromium.org/chromedriver/capabilities
• Main Wiki: 
https://github.com/theintern/intern/wiki 
! 
• Intern examples for jQuery, Angular, etc: 
https://github.com/theintern/intern-examples 
! 
• Tutorial: 
https://github.com/theintern/intern-tutorial 
• Support: 
https://github.com/theintern/intern/wiki/Support
Thank you! 
Questions? 
@vladikoff

jQuery Chicago 2014 - Next-generation JavaScript Testing