You can clone with
HTTPS or Subversion.
First off, apologies if this is already implemented in some vein. I've looked through the documentation and googled, but haven't found anything that might relate.
We're currently using Grunt for testing in a Node.js project. One thought that came up was using the exit codes from running our code as a factor in checking whether a test passes or not. Could a function for this be implemented, or if it exists, could it be added to the documentation?
In your custom task, you can cause grunt to exit with a non-zero exit code by using one of the grunt.fail methods. Grunt's default behavior is to exit with an exit code of 0 on success or non-zero otherwise.
FWIW, this is the 0.3.x exit code list and this is the 0.4.0a exit code list.
I saw the list, but that's exit codes for grunt proper. I was asking about getting the exit code from scripts run inside tests.
Scripts? I don't know what you mean.