views:

65

answers:

1

I'm using CoffeeScript in a Rails application, and I would like to unit test it. Google didn't turn up anything, is there any way to do it short of writing my own testing framework or testing the JavaScript that CoffeeScript outputs?

Thanks.

+2  A: 

You can use any javascript testing framework with CoffeeScript. This will be testing the Javascript that CoffeeScript outputs which is necessary since CoffeeScript itself can't be executed.

Writing your own testing framework for CoffeeScript is fun (I did) but entirely uneccessary.

liammclennan
Thanks for the answer. I decided to go with QUnit for now. I had to write a little bit of glue code to get my test page going but that's all right.
Alex - Aotea Studios