Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Running Unit Tests written in CoffeeScript
For example given a CoffeeScript test file that references another CoffeeScript file:
## <reference path="../code/code.coffee" /> test "A basic test", -> ok true, "this test is fine" value = "hello" equal "hello", value, "We expect value to be hello"
Chutzpah will parse that file as well as the referenced code.coffee file and search for matching .js files that your compile step generates. Notice the syntax for referencing other files. For CoffeeScript files Chutzpah uses comments that start with ## to indicate a reference declaration.