Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.22 KB

Roadmap.textile

File metadata and controls

41 lines (26 loc) · 1.22 KB

Road map

Goals

  1. Jack should be the best mocking tool for JavaScript TDD
  2. Jack code should be easy to read and easy to write

How to get there

  1. Be compatible with all major JavaScript testing frameworks
  2. Simple mocking tasks should require short code
  3. Complex mocking tasks should be supported without making simple tasks harder

Planned features

(Current version is 0.0.2)

Version 0.0.3

  • Compatibility with YUI Test
  • Support for jack.verify() and jack.when() syntax to split setup code and assertion code.

Version 0.0.4

?

Ideas

  • Support for making a stub throw an exception (Error)
  • Export functions to global namespace to avoid the need to write “jack.” so often: expect(), create(), when(), verify()
  • .returnMock(name, [functionNames]) and .returnMock([functionNames])
  • jack.get(name) to return named mock
  • Integration with JsUnit
  • Verify the order of function calls
  • Compatibility with env.js
  • When reporting an expectation that was not met, report other calls to the same function.
  • Report file name and line number for failures
  • Refactor to reusable parts