0.0.9 • Published 12 years ago
coffee-scope v0.0.9
scope.coffee
scope.coffee
is a compact, modular Coffeescript/Javascript testing environment. It can be used from within a
node environment directly or in a browser. It is based on shoulda.js
and scope. Other projects that deserve credit for inspiration include
shoulda, minitest,
mocha, and rr.
Features
- Modular design -- only include the parts you want
- Simple test runner that can output results to screen with
console.log
or in pretty html - Nested contexts to group tests and reuse setup/teardown blocks
setup_once
andteardown_once
blocks to perform costly tasks no more than necessaryfocus()
-- a simple method for only running the test you're working on in development- A rich assertion set inspired by minitest's assertions
- A flexible mocking framework inspired by Mocha and rr
Usage
TODO(caleb)
To Do
- Real tests of all major functionality
- Add more assertions; split out extra assertions into separate file
- Split out mocks to a separate file
- Look into adding additional mocking functionality (spies and other doubles) if it makes sense
- Pretty HTML output