Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A sample Mimosa project with tests run via testem.
CoffeeScript Other
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
assets
views
.gitignore
README.md
mimosa-config.js
package.json
server.coffee
test.sh

README.md

MimosaTestem

A sample Mimosa project with tests run via testem using mimosa-testem-require.

Zero config required. Just write tests. Mimosa will figure out what config you need to execute the tests and will run the tests for you automatically when Mimosa starts and with each file save.

To read more about mimosa-testem-require checkout the github page.

How to Use

  • Install the latest Mimosa.
  • npm install -g phantomjs (necessary for headless test running)
  • git clone https://github.com/dbashford/MimosaTestem
  • cd MimosaTestem
  • npm install
  • mimosa watch -s

What will happen?

First Mimosa will install into your project mimosa-testem-require, an external Mimosa module that does not come by default with Mimosa.

Then all of the default Mimosa stuff happens:

  • Compiling CoffeeScript, Stylus, Handlebars
  • Linting of CSS/JS
  • Express server will be started (visit the app at http://localhost:3000)

Then mimosa-testem-require kicks in:

  • writes several files to the .mimosa directory of the application. Those files are necessary for test running and some are dynamic based on what Mimosa has learned about the project while processing its files.
  • fires up the testem test runner
  • testem loads the Mimosa generated test suite using PhantomJS
  • that test suite, which includes the repo-view_spec runs and a message regarding test success prints to the screen.
Something went wrong with that request. Please try again.