ff0000/rosy — pull request #52 by doctyper (2012-08-24 00:52:09+00:00)
Title: Oxblood Test Framework

This pull request lands test cases for Rosy. A total of 56 test cases have been added.

### Tests

Rosy comes bundled with the [OxBlood](http://en.wiktionary.org/wiki/oxblood) framework. It allows you to run unit tests, both in the browser and through the command line.

##### Requirements

- [PhantomJS](http://phantomjs.org): `brew install phantomjs`
- A server running from the root Rosy directory. We recommend [http-server](https://github.com/nodeapps/http-server): `npm install http-server -g`
- The `devDependencies` listed in `package.json`: `npm install`

##### From your browser

- Spool up your server: `cd path/to/rosy && http-server`
- Navigate to `http://localhost:8080/test/runner.html`

##### From your command line

- Spool up your server: `cd path/to/rosy && http-server`
- `phantomjs test/lib/mocha/run-mocha.js http://localhost:8080/test/runner.html`

### RBP

This all gets even easier with the RED Boilerplate. For now, here's how to get it set up:

Start a project:

```
rbp new example
```

Install Rosy from the oxblood branch:

```
grunt install:rosy@feature/oxblood-test-framework
```

From your command line:

```
grunt oxblood
```

From your browser:

```
grunt oxblood:browser
```