我尝试在WebStorm中使用grunt运行Jasmine测试。当我在控制台中运行它时,测试工作。
在WebStorm中,我收到此消息:
[2017-02-27 17:36:28.373] [ERROR] modify-and-run - Error: Require failed for module: csi-filter-test-by-gruntfile. Please check your command line arguments and installed packages are correct.
at Object.error (C:\xxx\nodejs_testing\node_modules\csi-logger\csi-logger.js:72:24)
at C:\xxx\nodejs_testing\node_modules\csi-modify-jasmine-test\csi-modify-jasmine-test.js:131:33
at Array.forEach (native)
at ModifyJasmineTest.getFilters (C:\CPSITA\nodejs_testing\node_modules\csi-modify-jasmine-test\csi-modify-jasmine-test.js:123:22)
at Object.<anonymous> (C:\CPSITA\nodejs_testing\node_modules\csi-grunt-modify-and-run\tasks\modify-and-run.js:59:36)
at Object.<anonymous> (C:\xxx\nodejs_testing\node_modules\grunt\lib\grunt\task.js:264:15)
at Object.thisTask.fn (C:\xxx\nodejs_testing\node_modules\grunt\lib\grunt\task.js:82:16)
at Object.<anonymous> (C:\xxx\nodejs_testing\node_modules\grunt\lib\util\task.js:301:30)
at Task.runTaskFn (C:\xxx\nodejs_testing\node_modules\grunt\lib\util\task.js:251:24)
at Task.<anonymous> (C:\xxx\nodejs_testing\node_modules\grunt\lib\util\task.js:300:12)
测试本身会向控制台打印hello。这就是全部。