CoffeeScript support #6

Closed
wants to merge 2 commits into
from

Projects

None yet

4 participants

@sstephenson

This branch adds support for running tests written in CoffeeScript.

@caolan
Owner

nice!

@brenzenb

I'm having a ton of trouble getting any nodeunit tests to work in coffeescript. Can you please give me a very very simple example? Below I've included my example.coffee file, which fails when I try to run 'nodeunit example.coffee'

Here's what I have as my basic test scenario right now:

exports.testSomething = test ->
test.expect(1)
test.ok(true, 'This assertion should pass')
test.done

exports.testSomethingElse = (test) ->
test.ok(false, 'This assertion should fail')
test.done

@felipefontoura

@brenzenb use this following coffee:

exports.testSomething = (test)->
test.expect(1)
test.ok(true, 'This assertion should pass')
test.done()

@brenzenb

Update: I found the source of my error, and like most simple errors it wasn't what I thought at all. My NODE_PATH variable hadn't been set, meaning that the nodeunit process couldn't find the coffee-script library.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment