量角器找不到环境/环境

时间:2019-08-13 16:32:29

标签: intellij-idea protractor angular-testing

我正在spec中运行IntelliJ,方法是单击左侧装订线中的绿色三角形。看来它开始于protractor。我的测试用例不会不幸地运行。 Chrome窗口仅打开一会儿。我在IntelliJ屏幕上看到以下错误

"C:\Program Files\nodejs\node.exe" "C:...\bin\protractor" "C:\...\protractor-intellij\lib\protractor-intellij-config.js" "--intellijOriginalConfigFile=C:...\web\ui\protractor.conf.js" --disableChecks --specs "C:\...\ui\src\app\nav-component\nav-component.component.spec.ts" "--grep=^NavComponentComponent "
(node:22316) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[17:25:17] I/launcher - Running 1 instances of WebDriver
[17:25:17] I/direct - Using ChromeDriver directly...
(node:22316) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[17:25:21] E/launcher - Error: Error: Cannot find module 'environments/environment'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    ...
at Object.<anonymous> (C:\Users\RSI\Documents\manu data\Documents\manu\codingjedi\code_related\code\frontend\web\ui\src\app\web-to-backend-interface.service.ts:2:1)
    [17:25:21] E/launcher - Process exited with error code 100

    Process finished with exit code 4

为什么protractor找不到文件?

如果我使用ng test --source-map=false,则测试工作正常。当我使用protractor时会出现问题。即使我正在使用protractor,也没有运行e-2-e测试。

0 个答案:

没有答案