CoffeScript + Jasmine bootstrap project
JavaScript Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
spec
src
.gitignore
README.md
SpecRunner.html
autotest-console.js
autotest-gmessage.js
autotest-notify.js
autotest.js

README.md

CoffeeScript + Jasmine autotest rig

A template project for working with CoffeeScript and Jasmine. Compiles .coffee files automatically with node.js and runs Jasmine with node.js. Also supports client-side Jasmine with SpecRunner.html

To get started:

  • For automatic deployment
    • Set up a deployment target directory on a server
    • Set up the autotest-*.js file with the deployment target
  • For no automatic deployment
    • Remove the last parameter from the autotest function call in autotest-*.js
  • node autotest-gmessage (for Ubuntu Gmessage style notification)
    • Alternative: "node autotest-notify" for pretty, but not functional notifications
    • Alternative: "node autotest-console" for portability
  • Add spec/xxx_spec.coffee
    • autotest automatically creates xxx_spec.js
    • autotest automatically runs xxx_spec.js with Jasmine (with Node.JS)
  • Add src/xxx.coffee
    • autotest automatically creates xxx.js
    • autotest reruns all tests
  • Add src/xxx.js and spec/xxx_spec.js to SpecRunner.html
  • Open SpecRunner.html in a web browser
    • Jasmine automatically runs all your test