This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
/
index.html
144 lines (123 loc) · 4.25 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE HTML>
<html>
<head>
<title>foounit: Test your javascript everywhere!</title>
<link href="http://yui.yahooapis.com/2.9.0/build/reset/reset-min.css" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Neuton:regular,italic,bold" rel="stylesheet" type="text/css">
<link href="resources/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- center wtf? IT WORKS and took me 3 seconds... fuck it -->
<header>
<div class="content">
<a href="/index.html"><img id="logo" height="55" width="241" src="resources/images/logo.png"></a>
<nav>
<a href="">Get Started</a>
<a href="">Documentation</a>
<a href="">Support</a>
<a href="">About</a>
<a href="">Source</a>
</nav>
<div id="download-tag">
<div>
<span class="version">
Version 0.0.7<br>Updated: Today
</span>
<span class="separator"></span>
<a href="">Download</a>
</div>
</div>
</div>
<div id="header-decoration"></div>
</header>
<div id="teaser">
<div class="content">
<h1>Test your javascript everywhere!</h1>
<div class="cell">
<h2>{Expressive BDD Syntax}</h2>
<div class="cell-content">
<div class="frame dark"></div>
<div class="text">
<br><br>
var foounit = require('foounit');<br>
<br>
describe('this is ta test', function() {<br>
it('is only a test', function() {<br>
expect(myTest).to(runEverywhere);<br>
});<br>
});<br>
<br>
foounit.run();
</div>
</div>
</div>
<div class="cell">
<h2>{Clean easy to use UI}</h2>
<div class="cell-content">
<div class="frame light"></div>
<img src="resources/images/screenshot-node.png" height="223" width="296">
</div>
</div>
<div class="cell">
<h2>{More Features}</h2>
<div class="cell-content light">
<div class="frame light"></div>
<ul class="features">
<li>Asynchronous testing</li>
<li>Runs in nodejs and the browser</li>
<li>Mocking</li>
<li>Continuous Integration</li>
<li>Test suites</li>
</ul>
</div>
</div>
</div>
</div>
<div class="content main">
<!-- Getting Started -->
<h1>Getting Started</h1>
<p>
First install foounit with npm:
<pre class="code">$ npm install foounit</pre>
</p>
<br/>
<p>Then follow these steps to run tests...</p>
<ul class="index">
<li><a href="">in nodejs</a></li>
<li><a href="">in the browser</a></li>
<li><a href="">on code that is shared between the client and the server</a>
</ul>
<h3>In nodejs</h3>
<p>
Generate a sample suite in the spec directory:
<pre class="code">$ foounit generate --type=node spec</pre>
</p>
<p>
Run the test:
<pre class="code">$ node spec/example_spec.js</pre>
</p>
<h3>In the browser</h3>
<p>
Generate a sample suite in the spec directory:
<pre class="code">$ foounit generate --type=browser spec</pre>
</p>
<p>
Start a web server in the directory where the suite was created:
<pre class="code">$ foounit-server --spec=spec</pre>
<p>
<p>
Open a web browser at <a href="">http://localhost:5057/spec/suite.html</a>
</p>
<h3>Shared client and server code</h3>
<p>
Generate a sample suite in the spec directory:
<pre class="code">$ foounit generate --type=browser,node spec</pre>
<i>foounit is smart enough to know that when multiple environments are specified that it should create a shared directory for multi-environment testing</i>
</p>
<p>
Run the tests for each environment by following the directions in the previous steps.
</p>
<!-- /Getting Started -->
</div>
</body>
</html>