Chutzpah Runner for Visual Studio Code
Execute Chutzpah tests from your context menu.
Install
- Open Extensions sideBar panel in Visual Studio Code and choose the menu options for View → Extensions
- Search for
chutzpahrunner
- Click Install
- Click Reload, if required
Initial Configuration
- Ensure you have Chutzpah test runner installed
- In VS Code preferences, go to
extensions
then ChutzpahRunner
- Set
exePath
to the full path of your chutzpah.console.exe
executable
Usage
- Right click a .js file in the explorer
- Select:
- "Run Chutzpah" to run in headless mode; or
- "Run Chutzpah in browser" to run in Chrome for debugging; or
- "Run Chutzpah with coverage" to run in Chrome with code coverage
Configuration Options
Option |
Description |
chromeProfileFolder |
Temporary directory for Chrome profile. By default C:/ChromeDevSession or ~/ChromeDevSession will be used |
debug |
Print debug information in output |
disableCORS |
Disable cross origin checks during tests |
engine |
Browser engine. Chrome (default) / jsdom / phantom |
exePath |
Full path of your chutzpah.console.exe executable |
parallelism |
Number of threads to use when executing tests (default is auto) |
trace |
log tracing information in chutzpah.log |
Things to be aware of
- If a
chutzpah.json
file exists in the same folder, it will be used by Chutzpah automatically
- Launching Chutzpah in Chrome will open a seperate command window. This is to allow the Chutzpah dev server to run.
- Running with coverage will output cover stats to the output window, and to a html file (displayed at the end of the run).
- (Windows) If the Chutzpah exe is on a different drive to your test spec files, Chrome may fail to load blanket coverage. This appears to be a Chutzpah issue.
Contributing
Pull requests are welcome. Please see contributing for instructions on how to build and test the extension.
Bugs
Report bugs or feature requests to the bug tracker
Credits
- @mmanela for writing the excellent Chutzpah test runner
- VSCode for being awesome