What configuration do I need to run TestCafe in WebStorm

Viewed 591

I would like to run/debug TestCafe tests using WebStorm. Does anyone have a suggested configuration I need to do this?

https://i.stack.imgur.com/7nHP8.png

1 Answers

WebStorm doesn't provide any special support for TestCafe (if you miss it, please vote for WEB-30315); but you can use VS Code instructions to run/debug in WebStorm. Namely, you need Node.js Run configuration like the following:

enter image description here

where JavaScript file: is set to a path to your locally installed testcafe module, e.g. node_modules\testcafe\bin\testcafe.js, and Application parameters: are testcafe cli args, like chrome myTestFile.js

Related