-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (54 loc) · 2.54 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Learning Javascript TDD</title>
<link rel="stylesheet" href="/css/site.css" type="text/css" />
</head>
<body>
<h1 style="text-align: center">
How to Test Your Javascript<br/>
<span style="font-size: 80%; color: #666">(An Introduction to Jasmine)</span>
</h1>
<p>So you're no longer just adding little bits of interactivity to your page, you're creating
full blown applications in the browser.</p>
<p>You suddenly find:</p>
<ul>
<li>You have several thousand lines of javascript.</li>
<li>You've developed reusable pieces of code.</li>
<li>You're still manually clicking through your web app to make sure everything works.</li>
</ul>
<p>It's time to give your client side code the same love as your server code.
You'll learn to use tools to test your javascript, automate the tests, and integrate
them into your build system.</p>
<p>While this is not a comprehensive guide to Jasmine, it provides the basics for getting started,
and should get you started on the path to having a comprehensive test suite for your client side code.</p>
<h2>The Basics</h2>
<ol>
<li><a href="/tests/expectations.html">Expectations</a></li>
<li><a href="/tests/setup_and_cleanup.html">Setup, Cleanup</a></li>
<li><a href="/tests/custom_matchers.html">Custom Matchers</a></li>
</ol>
<h2>Asynchronous Testing</h2>
<ol>
<li><a href="/tests/dom_events.html">DOM Events</a></li>
<li><a href="/tests/ajax.html">AJAX</a></li>
</ol>
<h2>Mocks: Removing Dependencies</h2>
<ol>
<li><a href="/tests/faking_geolocation.html">Faking GeoLocation</a></li>
</ol>
<h2>Continuous Build Integration</h2>
<ol>
<li><a href="/tests/custom_reporters.html">Custom Reporters</a></li>
<li><a href="/tests/continuous_builds.html">Integration with Build Servers</a></li>
</ol>
<h2>Resources</h2>
<ul>
<li><a href="https://github.com/pivotal/jasmine/wiki" target="_new">Jasmine Documentation</a></li>
<li><a href="https://github.com/searls/jasmine-maven-plugin">Jasmine Maven Plugin</a></li>
<li><a href="https://github.com/ibolmo/jasmine-jstd-adapter">Jasmine JsTestDriver Adapter</a></li>
<li><a href="https://github.com/larrymyers/ichabod">Ichabod Headless Test Harness (Node.js)</a></li>
</ul>
</body>
</html>