Pat O'Hara
Pat O'Hara

Reputation: 67

What configuration do I need to run TestCafe in WebStorm

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

https://i.sstatic.net/7nHP8.png

Upvotes: 3

Views: 673

Answers (1)

lena
lena

Reputation: 93848

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

Upvotes: 4

Related Questions