Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Jasmine tests from WebStorm

WebStorm shows icons next to Jasmine's test cases and it seems as if there should be an option to run it, but the menu just says: Nothing here.

WebStrom test suite

As I did not find any documentation about this feature, I wonder if it should be possible to run tests like this and if yes, what the conditions are.

like image 364
Yogu Avatar asked Oct 29 '22 08:10

Yogu


1 Answers

This likely means that no suitable test runners have been found. WebStorm doesn't manage test running directly. This job is done by a test runner. WebStorm supports several test runners - Mocha, Karma, Jest, JsTestDriver, nodeunit,... The logic used for determining what test runner is available for a given test file is based on dependencies declarations in nearest package.json file.

like image 184
lena Avatar answered Nov 15 '22 04:11

lena