JavaScript Applications for the Enterprise: Test More

Preview:

Citation preview

JavaScript Applications for the Enterprise: Test More, Work Less

George BochenekRandy Jones

March 8–11, 2016 | Palm Springs, CA

Esri Developer Summit

QA is Important

Regressions and the Dream Curve

Regressions and the Dream Curve

Enterprise Challenges

Unit Testing

wwworks/8081867203

Don’t Test Other People’s Code

Aerokay/Tommy-the-Cheater-204152168

Spies and Fakes

ajc1/6357759479

Encapsulation

cancunwijaya/15897251675

nrcgov/6800272614

Continuous Integration

Write Code

Write Test

Write code, break test

Rewrite Test

How do we Test?

Write Test

Test Fails

Write code till passes

Refactor

Test Driven Development

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

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

Recommended