grunt-mocha-debug

Easily run mocha tests on node.js/phantomjs

9 个版本
安装
npm install grunt-mocha-debug
yarn add grunt-mocha-debug
pnpm add grunt-mocha-debug
bun add grunt-mocha-debug
README

grunt-mocha-debug

Runs mocha tests in another process, automatically appending --debug-brk if 'debugger' statements are found

Getting Started

npm install grunt-mocha-debug --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-mocha-debug');

Overview

This task is similar to other mocha grunt tasks, except it will start another process. Itt will check each file for ocurrences of the 'debugger' statements (nothing fancy just regex test so the debugger statement can only have trailing spaces) and if any are found it will start the mocha process using the '--debug-brk' argument.

版本列表
0.0.10 2013-12-18
0.0.9 2013-12-18
0.0.8 2013-10-10
0.0.7 2013-10-08
0.0.6 2013-09-17
0.0.5 2013-09-12
0.0.4 2013-09-11
0.0.3 2013-09-08
0.0.2 2013-09-07