An open API service indexing awesome lists of open source software.

https://github.com/tomwayson/esri-js-testing-tools-and-patterns

Links to resources from the Testing Tools and Patterns for JavaScript Mapping Applications talk given by Dave Bouwman and Tom Wayson at the Esri 2015 International Developer Summit
https://github.com/tomwayson/esri-js-testing-tools-and-patterns

Last synced: 4 months ago
JSON representation

Links to resources from the Testing Tools and Patterns for JavaScript Mapping Applications talk given by Dave Bouwman and Tom Wayson at the Esri 2015 International Developer Summit

Awesome Lists containing this project

README

          

esri-js-testing-tools-and-patterns
==================================

Links to resources from the **Testing Tools and Patterns for JavaScript Mapping Applications** talk given by Dave Bouwman and Tom Wayson at the Esri 2015 International Developer Summit. For links from the 2014 talk, see the 2014/README.md.

## The Presentation
- [Video](http://video.esri.com/watch/4281/javascript-mapping-applications-_dash_-testing-tools-and-patterns)
- [Presentation (PDF)](http://proceedings.esri.com/library/userconf/devsummit15/papers/dev_int_106.pdf)

## Tools

###Karma
**Tutorials on GitHub**:
- https://github.com/tomwayson/esri-karma-tutorial - Using the Karma test runner to automatically run Jasmine BDD-style unit tests on your ArcGIS API for JavaScript code.

**Production Applications**:
- [Landscape Modeler](https://github.com/esri/landscape-modeler-js) - This is a production Esri application that uses Karma to run Mocha/Chai tests in Chrome and Internet Explorer.

**Libraries**:
- [Karma](http://karma-runner.github.io/)
- [Jasmine](http://jasmine.github.io/)
- [Mocha](http://mochajs.org/)
- [Sinon](http://sinonjs.org/)

###Grunt / Jasmine
**Tutorials on GitHub**:
- https://github.com/tomwayson/OpenData-Backbone - A sample application using the Open Data API using Gulp, Karma, and Jasmine
- https://github.com/dbouwman/jsapi-jasmine - Using grunt-contrib-jasmine to test javascript that uses/relies on the Esri JS API.

**Libraries**:
- [Karma](http://karma-runner.github.io/)
- [Jasmine](http://jasmine.github.io/)
- [Istanbul](https://gotwarlost.github.io/istanbul/)
- [gulp](http://gulpjs.com/)

**Blog posts**:
- [Automated Headless Unit Tests with Esri JS API](http://blog.davebouwman.com/2013/07/26/automated-headless-unit-tests-with-esri-js-api/)

##Patterns

###Books
- [Testable JavaScript](http://shop.oreilly.com/product/0636920024699.do) by Mark Ethan Trostler
- [Jasmine Javascript Testing](http://www.packtpub.com/javascript-unit-testing/book) by Paulo Regonha - excellent book because it uses a non-trivial example application, really focuses on refactoring the code, and finally shows how to implement the app using BackboneJS, and how to write tests for Backbone models and views.

##Speakers
- [Dave Bouwman](https://github.com/dbouwman) - [@dbouwman](https://twitter.com/dbouwman) - [http://blog.davebouwman.com/](http://www.davebouwman.com/)
- [Tom Wayson](https://github.com/tomwayson) - [@tomwayson](https://twitter.com/tomwayson) - [http://tomwayson.com](http://tomwayson.com)