A minimal setup example for app using mocha in vscode, powered by gulp.
- git clone https://github.com/kgao/mocha-vscode.git
- cd mocha-vscode
- npm install
- code . (Open in vscode)
Now, when running in VSCode, you can press SHIFT + CMD + T
or use the command SHIFT + CMD + P
, type Tasks: Run Test Task
, select mocha-tests
and it will execute your tests within the output window in VSCode.