Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Cypress --headless tests run fast once, then take minutes #2783

Copy link
Copy link
Closed
@wadetandy

Description

@wadetandy
Issue body actions

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.