1

我正在用 mocha 测试我的电子应用程序并多次出现此错误(我仍然得到它!)。每次我运行程序时它都会返回错误

 > Executing task: npm run test <


 > forte@1.0.0 test PATH TO PROJECT
 > mocha ./tests/test.js



  0 passing (3ms)

  Test failed Failed to create session.
 unknown error: Chrome failed to start: was killed.
 (unknown error: DevToolsActivePort file doesn't exist)
 (The process started from chrome location \node_modules\spectron\lib\launcher.bat is no longer running, so ChromeDriver is 
 assuming that Chrome has crashed.)

以防万一这很重要,所说的部分(The process started from chrome location \node_modules...实际上有整个路径,而不仅仅是那个。

在我的 test.js 文件中,我有来自 spectron 主页的代码,您可以在此处查看。测试文件有什么问题?

4

0 回答 0