nodeunit
nodeunit copied to clipboard
Easy unit testing in node.js and the browser, based on the assert module.
According to http://nodejs.org/docs/v0.4.2/api/assert.html#assert.throws ... assert.throws can be passed three arguments: `assert.throws(block, [error], [message])` The `error` parameter can be constructor, regexp or validation function. Nodeunit assumes that `error` is a constructor...
- Without this filter the filename is wrong - This makes problems with the vim plugins: nodeunit.vim and vim-markgreen On unit test errors vim jumps to the types.js file Same...
Nocolor can be added by adding either a '-nc' or '--nocolor' flag when invoking nodeunit. ``` $ nodeunit --nocolor my_file.js ``` Sets an option called 'suppressReporterColor', which can be included...
Fix `betterErrors` to display the useful Assertion message even when actual/expected are 0 or undefined. Fixes #220
example: ``` module.exports.myTest = function (test) { test.expect(1); test.equal(undefined, 2, "some message") test.done(); } /* $ nodeunit test.js test.js ✖ myTest Assertion Message: some message AssertionError: some message // should...
When a test fails, the stack trace is not HTML escaped when displayed in the browser, which means that if you are testing the equality of two strings that contain...
Hi, It's my first pull request here so please be patience :) Thanks, Kamil
Mention the [karma-nodeunit adapter](https://github.com/karma-runner/karma-nodeunit) for automated browser testing.
Code was copied from default.js.
It improperly tries to append the process.pwd() to the front of an already absolute path which results in a path that doesn't exist.