Skip to content
slayerjay edited this page Jun 28, 2012 · 1 revision

NutCocoJS primarily use QUnit as its unit test framework. It also uses SinonJS to provide test spies, stubs, and mocks. When testing RequireJS modules mock dependencies can be set using testrjs. Test cases can be written and included in the tests\testmodules\ folder, and the path for the test case files should be included in the require call in the tests\tests.js file. Refer the tests\testmodules\sampleTests.js to see sample test cases.

Clone this wiki locally