我最近更新了测试项目中的依赖项。更新后,botium-core无法加载我定义的自定义断言器。
下面是package的一个片段。显示我的依赖项的Json。
"dependencies": {
"botium-connector-dialogflow": "^0.0.25",
"botium-core": "^1.11.0",
"jsonpath": "^1.1.0",
"lodash": "^4.17.20",
"minimist": "^1.2.5",
"mocha": "^8.2.1"}
下面是botium.json的一个片段
{
"botium": {
"Capabilities": {
"PROJECTNAME": "my-project",
"CONTAINERMODE": "dialogflow",
"DIALOGFLOW_PROJECT_ID": "<google project id>",
"DIALOGFLOW_CLIENT_EMAIL": "<service credentials email>",
"DIALOGFLOW_PRIVATE_KEY": "<service credentials private key>",
"ASSERTERS": [
{
"ref": "ASSERTER1",
"src": "./src/asserter1.js"
}
]
},
"Sources": {},
"Envs": {}
}
我还将路径切换到。srcasserter1.js,它在我的windows机器上工作,但在linux构建环境中失败。
请查看Github问题跟踪器获取解决方案。