After the recent conversations about a new syntax for jShoulda I
decided to create a new project and implement it.
Today it reach the "usable" status, so let me introduce SugarTest [1].
It features the new syntax I was proposing for jShoulda, still runs on
both JsUnitTest and Prototype-UnitTest and is of course published on
github [2].
Please see the tutorial [3] on SugarTest for more info. There's a
google group too [4] for discussing the library.
Finally, let me remark benefits achieved by the new project:
* Simpler chainable syntax — better in my opinion, than the jShoulda
arguments based syntax
* Only one object (`SugarTest`) is put on the global space. There's no
more dependency on the `window` object to export aliases
* Better aliasing by using "templates" for naming the resulting test
units
* Units and set up/tear down routines get now a "data" object, you can
write to it instead of polluting `this`
Major changes from jShoulda:
* Both describe/it and context/should pairs are available by default
* Every unit uses the same runner by default (you can use
`SugarTest.unifyRunners(false)` to create a differente test runner for
each sugar test).
* Gets you fat
As for jShoulda: I won't work on new features, but the project will
still be available for anyone to fork ;)
Thanks for your attention.
[1]: http://sugartest.scriptia.net
[2]: http://github.com/choan/sugar_test/tree/master
[3]: http://sugartest.scriptia.net/tutorial.html
--
Choan Gálvez
<choan....@gmail.com>
<http://choangalvez.nom.es/>
> New tmbundle to go with it? :)
Sure ;)
<http://github.com/choan/sugartest.tmbundle/tree/master>
Some triggers are shared with the jShoulda bundle, so you may want to
deactivate one of them.
Best.
--
Choan