Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updates to getting started

  • Loading branch information...
commit 54b4e6e4b196876ba165d99fc8e605df4803d1d9 1 parent c22046c
@foobarfighter authored
Showing with 12 additions and 9 deletions.
  1. +12 −9 site/www/src/documents/get-started.html
View
21 site/www/src/documents/get-started.html
@@ -13,46 +13,49 @@
<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>
+ <li><a href="#node">in nodejs</a></li>
+ <li><a href="#browser">in the browser</a></li>
+ <li><a href="#shared">on code that is shared between the client and the server</a>
</ul>
+<a name="node"></a>
<h3>In nodejs</h3>
<p>
Generate a sample suite in the spec directory:
- <pre class="code">$ foounit generate --type=node spec</pre>
+ <pre class="code">$ foounit generate --target=node --dir=spec</pre>
</p>
<p>
Run the test:
- <pre class="code">$ node spec/example_spec.js</pre>
+ <pre class="code">$ node spec/suite.js</pre>
</p>
+<a name="browser"></a>
<h3>In the browser</h3>
<p>
Generate a sample suite in the spec directory:
- <pre class="code">$ foounit generate --type=browser spec</pre>
+ <pre class="code">$ foounit generate --target=browser --dir=spec</pre>
</p>
<p>
Start a web server in the directory where the suite was created:
- <pre class="code">$ foounit-server --spec=spec</pre>
+ <pre class="code">$ foounit serve</pre>
<p>
<p>
- Open a web browser at <a href="">http://localhost:5057/spec/suite.html</a>
+ Open a web browser at <a href="">http://localhost:5057/spec/runner.html</a>
</p>
+<a name="shared"></a>
<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>
+ <pre class="code">$ foounit generate --target=browser,node --dir=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>
Please sign in to comment.
Something went wrong with that request. Please try again.