Squashed matchers refactor - matchers now unit-testable apart from Expectation and Spec.
This commit is contained in:
51
GOALS_2.0.md
51
GOALS_2.0.md
@@ -18,37 +18,42 @@
|
||||
* New objects can have constructors on `jasmine`
|
||||
* Top level functions can live on `jasmine`
|
||||
* Top level (i.e., any `jasmine` property) should only be referenced inside the `Env` constructor
|
||||
* Spies
|
||||
* isA functions:
|
||||
* isArray_ - used in matchers and spies
|
||||
* isString_
|
||||
* isDOMNode_
|
||||
* isA_
|
||||
* should better allow any object to get jasmine code (Node-friendly)
|
||||
* review everything in base.js
|
||||
* Spies
|
||||
* break these out into their own tests/file
|
||||
* Remove isA functions:
|
||||
* isArray_ - used in matchers and spies
|
||||
* isString_
|
||||
* isDOMNode_
|
||||
* isA_
|
||||
* unimplementedMethod_, used by PrettyPrinter
|
||||
* jasmine.util should be util closure inside of env or something
|
||||
* argsToArray is used for Spies and matching
|
||||
* inherit is for how matchers are added/mixed in, reporters, and pretty printers
|
||||
* formatException is used only inside Env/spec
|
||||
* htmlEscape is for messages in matchers - should this be HTML at all? Is that * Matchers improvements
|
||||
* move AddMatchers to Env & global (away from spec)
|
||||
* make matchers unit-testable
|
||||
* write doc on how to make a matcher
|
||||
* jasmine.util should be util closure inside of env or something
|
||||
* argsToArray is used for Spies and matching (and can be replaced)
|
||||
* inherit is only for PrettyPrinter now
|
||||
* formatException is used only inside Env/spec
|
||||
* htmlEscape is for messages in matchers - should this be HTML at all?
|
||||
* Matchers improvements
|
||||
* unit testable DONE
|
||||
* better equality (from Underscore) DONE
|
||||
* refactor equals function so that it just loops & recurses over a list of fns (custom and built-in) - 2.1?
|
||||
* addCustomMatchers doesn't explode stack
|
||||
* Pretty printing
|
||||
* move away from pretty printer and to a JSON.stringify implementation?
|
||||
* jasmineToString vs. custom toString ?
|
||||
|
||||
### Easy
|
||||
|
||||
* unify params to ctors: options vs. attrs.
|
||||
* This will be a lot of the TODOs, but clean up & simplify Env.js (is this a 2.1 task?)
|
||||
|
||||
## Other Topics
|
||||
|
||||
* Build - can we, should we redo the build and release process AGAIN in order to make it less arcane
|
||||
* Want to add JSHint to build
|
||||
* Use a standard JS/Node based concat system instead of custom Ruby?
|
||||
* Docs
|
||||
* JsDoc is a pain to host and RubyMine is pretty good at navigating. I say we kill it officially
|
||||
* Docco has gone over well. Should we annotate all the sources and then have Pages be more complex, having tutorials and annotated source like Backbone? Are we small enough?
|
||||
|
||||
# Build
|
||||
|
||||
* lib -> generated
|
||||
*
|
||||
* Need examples for:
|
||||
* How to build a Custom Matcher
|
||||
* How to add a custom equality tester
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user