jQuery Chicago 2014 - Next-generation JavaScript Testing

Post on 18-Dec-2014

1.325 views 0 download

description

jQuery Chicago 2014 - Next-generation JavaScript Testing

Transcript of jQuery Chicago 2014 - Next-generation JavaScript Testing

Next-generation JavaScript Testing

Vlad Filippov // jQuery Conference 2014

@vladikoff

– John Resig, 2009 http://ejohn.org/blog/javascript-testing-does-not-scale/

“JavaScript Testing Does Not Scale.”

2009

2014

Firefox Accounts

The Intern@ theintern.io

Maintained by

npm install intern

Unit Testing

Demo

New in Intern 2.1

Functional Testing

Supports: • InternetExplorerDriver • FirefoxDriver • ChromeDriver • SafariDriver • Selendroid • ios-driver

http://theintern.github.io/leadfoot/

Cross-platform consistency to the Selenium WebDriver API.

Basic Functional Test with the Intern

Basic Functional Test with the Intern

Demo

!

SauceLabs, TestingBot, BrowserStack

https://theintern.github.io/digdug/

Abstraction library for WebDriver service tunnels

Demo

Running CI Tests - Large App

Unit Tests

Install Project

Limited Functional Tests

JSHint, JSCS, etc.

Pull Request Testing

Install Project

Full Functional Tests

Stage Testing

with Xvfb

More than just tests!

https://github.com/gotwarlost/istanbul

Capabilities

• ChromeDriver homepage: https://sites.google.com/a/chromium.org/chromedriver/capabilities

• Custom Firefox profile:

• 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

@vladikoffQuestions?

Thank you!