My first YUI release

There’s a common misconception out there that I’m part of the YUI team. Well, I’m not (I work on My Yahoo!), but that didn’t stop me from submitting some code to be included in the 2.3.0 release (details). I’ve been secretly working on this little creation for the past few months and now that the release is here, I can finally talk about it.

The 2.3.0 release of YUI is the first to include my unit testing framework, unimaginatively named YUI Test. The basic idea was to create a super simple way to write unit tests for JavaScript. I really like unit testing, but found most of the JavaScript options to take too much time to get up and running. With YUI Test, you can include a couple of files and quickly write and run a test case. There’s tons of assertions geared towards common JavaScript data types and the default failure messages are helpful enough such that you don’t really need to provide custom ones (though that is an option).

I’ll be talking more about YUI Test in the coming weeks and months, but for now, check out the documentation and I hope you enjoy the wonderful world of unit testing.

Was this helpful? If you found this post helpful, I would very much appreciate your support. Donations of any amount gratefully accepted.