Closed
Description
Version
3.0.5
Reproduction link
https://github.com/wadetandy/vue-cypress-headless-repro
Node and OS info
Node 8.11.3 / yarn 1.7.0 / macOS 10.13.6
Steps to reproduce
- Create a vue cli project (typescript, mocha, cypress, eslint, prettier) - This is what the repo has done
- Run
yarn test:e2e --headless
- Run
yarn test:e2e --headless
again
What is expected?
Full build/test runs in around 20 seconds
What is actually happening?
The first test run takes the expected 20 seconds or so on my Macbook for the full compile and run.
The second one hangs after compiling everything but before the test run begins. It eventually completes after maybe four minutes of no activity (I have marked the spot in the trace):
$ yarn test:e2e --headless
yarn run v1.7.0
$ vue-cli-service test:e2e --headless
INFO Starting e2e tests...
INFO Starting development server...
Starting type checking service...
Using 1 worker with 2048MB memory limit
DONE Compiled successfully in 5509ms 11:27:22
No type errors found
Version: typescript 3.1.3
Time: 5469ms
App running at:
- Local: http://localhost:8081/
- Network: http://10.192.160.162:8081/
App is served in production mode.
Note this is for preview or E2E testing only.
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 3.1.0 │
│ Browser: Electron 59 (headless) │
│ Specs: 1 found (test.js) │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: test.js... (1 of 1)
Starting type checking service...
Using 1 worker with 2048MB memory limit
(node:32445) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
DONE Compiled successfully in 2439ms 11:27:37 AM
**** Hangs for around four minutes here ****
0 passing (2ms)
(Results)
┌─────────────────────────┐
│ Tests: 0 │
│ Passing: 0 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: true │
│ Duration: 0 seconds │
│ Spec Ran: test.js │
└─────────────────────────┘
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: tests/e2e/videos/test.js.mp4 (0 seconds)
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ test.js 2ms - - - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
All specs passed! 2ms - - - - -
✨ Done in 264.81s.
Metadata
Metadata
Assignees
Labels
We acknowledged your report and will soon try to reproduce itWe acknowledged your report and will soon try to reproduce it