问题描述
我已经创建了一个ember应用程序,并且正在node-webkit上运行该应用程序。在我的应用程序中,我使用过节点对象,例如过程对象。因此,当我尝试运行余烬测试“ ember test --server --module ='Unit | Route | application'”时,它将在chrome中运行该测试,从而给出未定义进程的错误。当我在node-webkit中打开http:// localhost:7375 /时,它可以正常工作。因此,如何在无头的 node-webkit 中运行余烬测试用例。我的意思是我必须在docker容器中运行余烬测试,所以如何使用node-webkit来获得测试报告。
module.exports = {
test_page: 'tests/index.html?hidepassed',disable_watching: true,launch_in_ci: [
'Chrome'
],launch_in_dev: [
'Chrome'
],browser_args: {
Chrome: {
ci: [
// --no-sandBox is needed when running Chrome inside a container
process.env.CI ? '--no-sandBox' : null,'--headless','--disable-dev-shm-usage','--disable-software-rasterizer','--mute-audio','--remote-debugging-port=0','--window-size=1440,900'
].filter(Boolean)
}
} };
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)