yui / yui3

A library for building richly interactive web applications.
http://yuilibrary.com/
Other
4.13k stars 1.29k forks source link

YUI Test mocking framework enhancement #442

Open trungpham opened 11 years ago

trungpham commented 11 years ago

Take a look at this: http://pivotal.github.com/jasmine/#section-Spies

Coming from JasmineJS background, the ability to spy on any object proven to be very useful. I would like to see this functionality in YUI Test as well.

P.S. I would love to swap out YUITest for JasmineJS in my Mojito app if I knew how. :)

hojberg commented 11 years ago

@trungpham not to pimp my self, but i've been working on https://github.com/hojberg/primrose to bring some Jasmine love to YUI. Would love help on it :) Primrose does have spies and will have YUI specific Event and ATTR spies as well.

I successfully test with Jasmine atm (not using primrose yet) It's not crazy hard.

trungpham commented 11 years ago

Agree. Testing yui app with jasmine is not hard. Using jasminejs with Mojito is tough.