Error Output:
DevTools listening on ws://127.ip.address/devtools/browser/<some hash>
2025-02-19 10:18:07.287 Cypress[18578:4259699] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSup
我会使用
模块API
您可以从测试中的应用程序中需要柏树作为节点模块,并通过node.js.运行柏树。
这意味着您不需要
execa()
options提供,例如
//myscripts/prodPageTests.js
const cypress = require('cypress')
cypress.run({
browser: 'chrome',
headless: true,
spec: './cypress/e2e/LoremProdPage.feature'
})
.then((results) => {
console.log(`Results:\n${results}`);
})
.catch((err) => {
console.error(`Error executing command: ${error}`);
})