我正在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测试。