A grunt task for power-assert.
grunt-espower is a grunt task to instrument "Power Assert" feature into your code.
grunt-espower task uses
Since 0.9.0, grunt-espower supports sourcemaps by default.
Pull-requests, issue reports and patches are always welcomed. See power-assert project for more documentation.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-espower --save-dev
In your project's Gruntfile, add a section named
espower to the data object passed into
||objects shown below|
'assert(value, [message])''assert.ok(value, [message])''assert.equal(actual, expected, [message])''assert.notEqual(actual, expected, [message])''assert.strictEqual(actual, expected, [message])''assert.notStrictEqual(actual, expected, [message])''assert.deepEqual(actual, expected, [message])''assert.notDeepEqual(actual, expected, [message])''assert.deepStrictEqual(actual, expected, [message])''assert.notDeepStrictEqual(actual, expected, [message])'
Target patterns for power assert feature instrumentation.
If callee name (for example,
assert.equal) matches exactly and number of arguments is satisfied, then the assertion will be modified.
Detection is done by escallmatch. Any arguments enclosed in bracket (for example,
[message]) means optional parameters. Without bracket means mandatory parameters.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
We support Node under maintenance. In other words, we stop supporting old Node version when their maintenance ends.
This means that any other environment is not supported.
NOTE: If grunt-espower works in any of the unsupported environments, it is purely coincidental and has no bearing on future compatibility. Use at your own risk.
Licensed under the MIT license.