无头地观察文件变化和 运行

Watch for file changes and run headlessly

当我 运行 cypress open 时,赛普拉斯测试运行器将打开 + 浏览器并在每次文件更改时重新测试运行。

是否可以重新运行自动测试但在无头模式下?

不,这不可能。

直接从the Cypress docs

中提取

Nothing is watched during cypress run. The watchForFileChanges property is only in effect when running Cypress using cypress open.