nodeunit icon indicating copy to clipboard operation
nodeunit copied to clipboard

Easy unit testing in node.js and the browser, based on the assert module.

Results 101 nodeunit issues
Sort by recently updated
recently updated
newest added

It's great having setUp() but quite often (e.g. when loading fixtures into a database) you don't want to do this before every test; you just want to do it once...

I think the problem is that ifError assertion which is simply "if (error) throw error;" is getting wrapped by assertWrapper which contains a try/catch. This stops the throw from escaping...

When running a test that calls a function that overflows the stack, only "undefined" is printed instead of the error message, which can be very confusing. ``` $ nodeunit test-stack-overflow.js...

I just published a QUnit to nodeunit adapter so you can run your QUnit tests natively in `node.js` using nodeunit. Check it out and let me know if it works...

``` javascript exports.test1 = function(test) { test.expect(1); test.ok(true, 'is true'); test.done(); // this should throw an error, however it passes test.ok(true, 'is true2'); }; ```

We're using nodeunit to drive a series of performance tests. Each test logs its results and its expected results. Currently we just manually copy the name of each test in...

Reporter minimal doesn't throw "undone tests" and so exit with 0 instead of 1. ``` shell /test (master⚡) ./node_modules/nodeunit/bin/nodeunit --reporter minimal ./tests/my.test.js my.test.js: ..% /test (master⚡) echo $? 0 /test...

Please refer to the full thread on http://stackoverflow.com/questions/9370617/possible-to-tell-nodeunit-not-to-finish-a-particular-test-until-test-done-is-c Why does test end without test.done() from being invoked?

When running unit tests at the command line, using the default reporter, I get the following error in the console if there are undone tests: _FAILURES: Undone tests (or their...

Hi, I've a couple of nested tests that were being executed as expected with 0.5.5 but with 0.6.2 i always get an empty xml file with the junit reporter. I...