首页 > 代码库 > macaca常见错误排查
macaca常见错误排查
1.Error: cannot resolve path (or pattern) ‘macaca-test‘
这是因为执行run命令的时候未进入用例目录
C:\Users\Tony\node_modules>macaca run >> webdriver sdk launched >> C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.5@mocha\lib\utils.js:628 throw new Error("cannot resolve path (or pattern) ‘" + path + "‘"); ^ Error: cannot resolve path (or pattern) ‘macaca-test‘ at Object.lookupFiles (C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.5@mocha\lib\utils.j s:628:15) at C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.5@mocha\bin\_mocha:326:30 at Array.forEach (native) at Object.<anonymous> (C:\Users\Tony\AppData\Roaming\npm\node_modules\macaca-cli\node_modules\.2.4.5@mocha\bin\_mocha: 325:6) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.runMain (module.js:590:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3 >> Test completed!
如下,进入相应目录即可
2.
macaca常见错误排查
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。