JavaScript Applications for the Enterprise: Test More ...
Transcript of JavaScript Applications for the Enterprise: Test More ...
![Page 1: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/1.jpg)
JavaScript Applications for the Enterprise: Test More, Work Less
George BochenekRandy Jones
March 8–11, 2016 | Palm Springs, CA
Esri Developer Summit
![Page 2: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/2.jpg)
QA is Important
![Page 3: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/3.jpg)
Regressions and the Dream Curve
![Page 4: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/4.jpg)
Regressions and the Dream Curve
![Page 5: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/5.jpg)
Enterprise Challenges
![Page 6: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/6.jpg)
Unit Testing
wwworks/8081867203
![Page 7: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/7.jpg)
Don’t Test Other People’s Code
Aerokay/Tommy-the-Cheater-204152168
![Page 8: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/8.jpg)
Spies and Fakes
ajc1/6357759479
![Page 9: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/9.jpg)
![Page 10: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/10.jpg)
Encapsulation
cancunwijaya/15897251675
![Page 11: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/11.jpg)
nrcgov/6800272614
![Page 12: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/12.jpg)
![Page 13: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/13.jpg)
Continuous Integration
![Page 14: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/14.jpg)
Write Code
Write Test
Write code, break test
Rewrite Test
How do we Test?
![Page 15: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/15.jpg)
Write Test
Test Fails
Write code till passes
Refactor
Test Driven Development
![Page 16: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/16.jpg)
Trunkaka
Stable
Tim
e
Release Candidate
1
3
7
SomeFeature
8
6
FutureFeature
2
4
9
10
Update
5
11
MinorFeature
1.0
1.1
Source Control
Inspired from https://gist.github.com/digitaljhelms/4287848
![Page 17: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/17.jpg)
JavaScript Mapping Applications - Testing Tools and Patternshttp://video.esri.com/watch/4281/javascript-mapping-applications-_dash_-testing-tools-and-patterns
Resources
https://github.com/Esri/enterprise-build-sample-js
![Page 18: JavaScript Applications for the Enterprise: Test More ...](https://reader034.fdocuments.in/reader034/viewer/2022042412/625efd1bf7d1604e4d12a820/html5/thumbnails/18.jpg)