如何配置Heroku CI以运行系统测试?
这是我的app.json,其中包含了我认为是必要的buildpacks:
{
"environments": {
"test": {
"scripts": {
"test-setup": "bin/rails assets:precompile","test": "bin/rails test:system"
},"addons":[
"heroku-postgresql:in-dyno"
],"buildpacks": [
{ "url": "https://github.com/heroku/heroku-buildpack-google-chrome" },{ "url": "heroku/nodejs" },{ "url": "heroku/ruby"}
]
}
}
}
但是当我部署时,出现以下错误:
-----> Running test command `bin/rails test:system`...
rails aborted!
Webdrivers::BrowserNotFound: Failed to find Chrome binary.
我怀疑我缺少一些非常基本的东西。...
我正在运行Rails 6.0.1和Ruby 2.6.3。