Using Intern with ArcGIS API for JavaScript

Using Intern with ArcGIS API for JavaScript

Rene Rubalcava | July 17, 2016

Intern is a JavaScript testing framework maintained and developed by the folks at SitePen that also maintain the Dojo Toolkit.

It's a great framework that allows you to run unit tests, functional tests, as well as integrate with cloud-based browser testing like Saucelabs or BrowserStack.

This video shows how the unit tests in the sample app for the ArcGIS JS API generator were written and how they work. It also covers how the testdouble.js mocking library is used with the Intern tests.

We'll also talk a little bit about code coverage and how it can be a handy tool to help you write your tests.

So please enjoy this video!