QUnit Boilerplate

26 Nov

QUnit is an okay testing framework and comes with the blessing of the
jQuery posse. However, to use it, you need to create a HTML file,
point it to jQuery, QUnit Javascript, and the QUnit CSS stylesheet; in
addition to your test and code.

I stuck all the boilerplate into a single file for the sake of convenience.

You might like to neaten it up by doing proper unobtrusive links to the
Javascript and CSS later on, but the biggest hurdle to writing tests is
getting started, so jump on the happy path with this little boilerplate.

https://gist.github.com/243480

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: