Skip to content

Commit

Permalink
Added more of the site
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Remeika committed Jun 16, 2011
1 parent 8f8a518 commit 4e29f15
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 73 deletions.
29 changes: 29 additions & 0 deletions site/www/src/documents/about.html
@@ -0,0 +1,29 @@
---
layout: home
---
<!-- About -->
<h1>About</h1>

<p>
foounit is an asynchronous BDD-style javascript test framework aimed at making cross-environment javascript testing simple. foounit is designed to make testing code that is shared between the server and the client less of a chore. It supports both commonjs loading and global scope loading of script files for immediate test dependencies in all environments. Test files are loaded in a functionally scoped environment to help minimize test pollution when running your suite. Test syntax is influenced heavily by Screw Unit, Jasmine and rspec.</p>

<p>
foounit is the love child of Bob Remeika (<a href="http://bobremeika.com">me</a>). It was <a href="http://twitter.com/#!/foobarfighter/status/71670398349099008">written out of spite</a> while consuming large amounts of alcohol. If you notice some bad code within foounit, it's definitely due to alcohol abuse. I'm not even going to try to pretend that I *meant* to do that. If you want to help with code quality then <a href="https://github.com/foobarfighter/foounit">patches are accepted</a>.
</p>

<p>
A common question that I get is why didn't I just use Jasmine. See the <a href="#/faq/jasmine">FAQ</a>.
</p>

<p>
foounit is currently used at <a href="http://www.yammer.com">Yammer Inc.</a> as the primary test harness for a core component of our client/server side architecture called yamjs.
</p>

<p>
foounit is a <a href="http://dojofoundation.org/">Dojo Foundation</a> project and is licensed under the Dojo Foundation License. This basically <a href="http://dojofoundation.org/about/hundredpoint">means</a> that no One Company owns the project and the code is gauranteed to be IP Free (free as in beer). This is another reason <a href="#/faq/jasmine">why I didn't want to use Jasmine</a>.
</p>

<p>
This website was created by <a href="http://www.heatherkphillips.com/">Heather Phillips</a> (Yammer) and the logo was created by James Kang (Yammer).
</p>
<!-- /About -->
14 changes: 14 additions & 0 deletions site/www/src/documents/documentation.html
@@ -0,0 +1,14 @@
---
layout: home
---
<!-- Documentation -->
<h1>Documentation</h1>

<ul class="index">
<li><a href="">Syntax overview</a></li>
<li><a href="">Async awesomeness</a></li>
<li><a href="">Matchers</a></li>
<li><a href="">How to test</a></li>
<li><a href="">FAQ</a></li>
</ul>
<!-- /Documentation -->
9 changes: 9 additions & 0 deletions site/www/src/documents/download.html
@@ -0,0 +1,9 @@
---
layout: home
---
<!-- Download -->
<h1>Download</h1>

<a href="">foounit-browser.js</a>

<!-- /Download -->
64 changes: 58 additions & 6 deletions site/www/src/documents/get-started.html
@@ -1,10 +1,62 @@
---
layout: home
title: blah blah
---
<!-- Getting Started -->
<h1>Getting Started</h1>

<!-- About -->
<section class="about">
<h2>About</h2>
<p>My life story</p>
</section>
<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 -->
12 changes: 12 additions & 0 deletions site/www/src/documents/support.html
@@ -0,0 +1,12 @@
---
layout: home
---
<!-- Support -->
<h1>Support</h1>

<ul>
<li>Twitter: <a href="http://twitter.com/foounit">@foounit</a></li>
<li>Mailing list: <a href="">Google groups</a></li>
<li>File a ticket: <a href="https://github.com/foobarfighter/foounit/issues?milestone=&labels=&_pjax=true&state=open">Submit an issue</a></li>
</ul>
<!-- /Support -->
74 changes: 7 additions & 67 deletions site/www/src/layouts/home.html
Expand Up @@ -11,19 +11,19 @@
<div class="content">
<a href="/index.html"><img id="logo" height="55" width="241" src="images/logo.png"></a>
<div id="nav">
<span><a href="">Get Started</a></span>
<span><a href="">Documentation</a></span>
<span><a href="">Support</a></span>
<span><a href="">Source</a></span>
<span><a href="">About</a></span>
<span><a href="/get-started.html">Get Started</a></span>
<span><a href="/documentation.html">Documentation</a></span>
<span><a href="/support.html">Support</a></span>
<span><a href="http://github.com/foobarfighter/foounit">Source</a></span>
<span><a href="/about.html">About</a></span>
</div>
<div id="download-tag">
<div>
<span class="version">
Version 0.0.7<br>Updated: Today
</span>
<span class="separator"></span>
<a href="">Download</a>
<a href="/download.html">Download</a>
</div>
</div>
</div>
Expand Down Expand Up @@ -78,67 +78,7 @@ <h2>{More Features}</h2>
</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 -->

<%- @content %>
</div>
</body>
</html>

0 comments on commit 4e29f15

Please sign in to comment.