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 required when building production

See original GitHub issue

Version

3.0.0-beta.6

Reproduction link

https://gist.github.com/cybercode/49e97783e92b2bdd2710c1e5d9e55508

Steps to reproduce

move build dependencies out of dev. Leave test dependencies in dev

What is expected?

yarn build should build the dist

What is actually happening?

error from vue-cli-service due to missing cypress library


Esp. deploying from a docker environment, the time required to download cypress, which is not needed for the build is problematic. You should be able to run vue-cli-service build without having to install the test tools.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
ghostcommented, Sep 20, 2018

I’d like to +1 this issue. It doesn’t make sense to me that we can’t separate build tools from test tools. Yes, builds should be tested before deploying, but it doesn’t make sense that it’s tightly coupled in this way.

In our Jenkins setup where we build our app serially but then test different aspects concurrently this adds a significant amount of time to each build that isn’t necessary, since not all of our tests require cypress (We’re a PHP shop).

2reactions
sodateacommented, Oct 30, 2018

With the newest release, it is now possible to move @vue/cli-plugin-e2e-cypress to optionalDependencies without causing any errors. So I’ll mark this issue as resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction | Cypress Documentation
Running Cypress in Continuous Integration is almost the same as running it locally in your terminal. You generally only need to do two...
Read more >
Immutable deploys and Cypress
It is simple to run Cypress both locally and on CI. And it is simple to point your tests to a different server....
Read more >
Best Practices - Cypress Documentation
Best Practices · Organizing Tests, Logging In, Controlling State · Selecting Elements · Assigning Return Values · Visiting external sites · Having tests...
Read more >
Projects - Cypress Documentation
With Cypress, you have the ability to record your project's tests. You typically want to record when running tests in Continuous Integration, but...
Read more >
Testing Your App | Cypress Documentation
When your application is running in production you can't control it. ... Now you'll need to add in the following code in your...
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