question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress with Heroku CI

See original GitHub issue

We 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: image

I tried many things for hours with no luck.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
howlettgacommented, Jun 10, 2020

@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

0reactions
ArielGuetacommented, Jul 16, 2019

And the command is: "e2e:ci": "cross-env CYPRESS_baseUrl=ourDomain DEBUG=cypress:* cypress run"

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found