是否可以使用 Cypress 框架而不是使用 Flutter 提供的内置测试组件来测试 Flutter 应用程序?如果是这样,如果我很了解 Cypress,那么 Flutter 测试的优缺点是什么?
在我的package.json文件中,我具有以下脚本:
"scripts": {
"start": "npm run watch:all",
"test": "echo \"Error: no test specified\" && exit 1",
"lite": "lite-server",
"sass": "node-sass -o sass/ css/",
"watch:sass": "onchange 'sass/*.scss' -- npm run sass",
"watch:all": "parallelshell 'npm run watch:sass' 'npm run lite'"
}
Run Code Online (Sandbox Code Playgroud)
每当我运行代码时,我都会收到以下错误消息:
crs@1.0.0 start /home/hazem/crs
> npm run watch:all
> crs@1.0.0 watch:all /home/hazem/crs
> parallelshell 'npm run watch:sass' 'npm run lite'
child_process.js:422
throw new ERR_INVALID_ARG_TYPE('options.cwd', 'string', options.cwd);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "options.cwd" property must be of type string. Received type function
at …Run Code Online (Sandbox Code Playgroud) 如何更改配置以使用精简服务器“browserSync”(如“about.html”)而不是默认的“index.html”加载自定义文件?
我有以下代码
let c = 0
cy.get(selector).each(count => {
if (++c == count-1)
break
//somthing
})
Run Code Online (Sandbox Code Playgroud)
假设我们已经n选择了 DOM 对象,我想只对n-2对象应用一些函数。是否可以在赛普拉斯中做到这一点?
cypress ×2
lite-server ×2
node.js ×2
break ×1
browser-sync ×1
flutter ×1
json ×1
loops ×1
npm-scripts ×1
sass ×1