0.0.9 • Published 12 years ago

coffee-scope v0.0.9

Weekly downloads
24
License
-
Repository
-
Last release
12 years ago

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 and teardown_once blocks to perform costly tasks no more than necessary
  • focus() -- 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

Credits

0.0.9

12 years ago

0.0.8

12 years ago

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago