Cypress with Heroku CI
See original GitHub issueWe are using Heroku CI and try to run cypress with it. I have followed several issues and repos and use the following app.json
config:
{
"stack": "cedar-14",
"formation": {
"web": {
"quantity": 1,
"size": "performance-l"
}
},
"environments": {
"test": {
"buildpacks": [
{ "url": "heroku/nodejs" },
{
"url": "https://github.com/heroku/heroku-buildpack-xvfb-google-chrome"
}
],
"scripts": {
"test-setup": "cd client && npm i",
"test": "cd client && npm run test"
},
"formation": {
"test": {
"quantity": 1,
"size": "performance-l"
}
}
}
}
}
And this is the output from Heroku:
I tried many things for hours with no luck.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Cypress on Heroku - Resilient Tech - Medium
We are leveraging Cypress to build towards a fully automated CI/CD pipeline where engineers are confident in each production promotion. While it ...
Read more >How to run Cypress tests in parallel on Heroku CI to fix slow ...
Speed up Cypress tests run 1 hour JavaScript test suite in 2 minutes with the optimal parallelisation on Heroku CI. Run Cypress tests...
Read more >How to get the most out of Heroku CI | by Tyler Hawkins
Let's take a look at how we could configure Cypress to run a few end-to-end tests on the pun generator app and then...
Read more >Heroku CI
Heroku CI automatically runs your app's test suite with every push to your app's GitHub repository, enabling you to easily review test ...
Read more >Integrate Heroku with Cypress - Buddy.Works
Integrate Heroku with Cypress ... Buddy CI/CD allows you to instantly integrate Heroku with Cypress to automate your development and build better apps...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ArielGueta Did you ever resolve this? I am trying to use the heroku-buildpack-apt buildpack as well to install cypress dependencies. xvfb will install but none of the other cypress dependencies’ packages can be located. I get an error usually like ‘libXcomposite’ cannot be found. I have tried to explicitly install this package and have tried to install all packages via direct url without success. This seems more like a Heroku issue but since you are the only one I have found asking about this online I figured I would see if you resolved this
And the command is:
"e2e:ci": "cross-env CYPRESS_baseUrl=ourDomain DEBUG=cypress:* cypress run"