Introducing SugarTest

1 view
Skip to first unread message

Choan Gálvez

unread,
Mar 8, 2009, 5:47:20 PM3/8/09
to jsho...@googlegroups.com
Hi all.

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/>

Dr Nic Williams

unread,
Mar 8, 2009, 5:54:23 PM3/8/09
to jsho...@googlegroups.com
New tmbundle to go with it? :)
--
Dr Nic Williams
Mocra - Premier iPhone and Ruby on Rails Consultants
w - http://mocra.com
e - dr...@mocra.com
p - +61 412 002 126 or +61 7 3102 3237
skype - nicwilliams

Choan Gálvez

unread,
Mar 8, 2009, 8:49:24 PM3/8/09
to jsho...@googlegroups.com
On Mar 8, 2009, at 22:54 , Dr Nic Williams wrote:

> 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

Reply all
Reply to author
Forward
0 new messages