--- layout: home ---
First install foounit with npm:
$ npm install foounit
Then follow these steps to run tests...
Generate a sample suite in the spec directory:
$ foounit generate --target=node --dir=spec
Run the test:
$ node spec/suite.js
Generate a sample suite in the spec directory:
$ foounit generate --target=browser --dir=spec
Start a web server in the directory where the suite was created:
$ foounit serve
Open a web browser at http://localhost:5057/spec/runner.html
Generate a sample suite in the spec directory:
$ foounit generate --target=browser,node --dir=specfoounit is smart enough to know that when multiple environments are specified that it should create a shared directory for multi-environment testing
Run the tests for each environment by following the directions in the previous steps.