Skip to content

tests fail from clean environment #7130

@towc

Description

@towc

Version

2.5.8

Reproduction link

https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md (meta-issue)

Steps to reproduce

Opened up a fresh terminal and typed this in:

git clone https://github.com/vuejs/vue
cd vue
npm i
npm run setup
npm test

What is expected?

All tests should be passing. I might be confused on the development process, but the contribution file says "make sure npm test passes", under "Pull Request Guidelines", so I would expect npm test to pass on a fresh pull

What is actually happening?

This is the tail of npm test:

Finished in 25.953 secs / 25.514 secs @ 21:13:50 GMT 0100 (CET)

SUMMARY:
✔ 1056 tests completed
✖ 1 test failed

FAILED TESTS:
  Transition mode
    ✖ transition out-in on async component (resolve after leave complete)
      PhantomJS 2.1.1 (Linux 0.0.0)
    Expected 1 to be 0.
    webpack:///test/unit/features/transition/transition-mode.spec.js:480:44 <- index.js:159373:44
    shift@webpack:///test/helpers/wait-for-update.js:24:32 <- index.js:95787:36


=============================== Coverage summary ===============================
Statements   : 99.98% ( 4110/4111 )
Branches     : 94.67% ( 3340/3528 )
Functions    : 99.82% ( 568/569 )
Lines        : 99.98% ( 4004/4005 )
================================================================================
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue@2.5.8 test:cover: `karma start test/unit/karma.cover.config.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the vue@2.5.8 test:cover script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2017-11-25T20_13_50_659Z-debug.log
npm ERR! Test failed.  See above for more details.

I doubt someone forgot to fix some code before AND the tools didn't pick it up AND the PR was accepted, so it's probably got to do with my environment. I'm running Ubuntu on i3wm, using fish shell, both of which might maybe not be considered in the test cases in some way. What should be done about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions