Cypress required when building production
See original GitHub issueVersion
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:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Top 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 >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
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).
With the newest release, it is now possible to move
@vue/cli-plugin-e2e-cypress
tooptionalDependencies
without causing any errors. So I’ll mark this issue as resolved.