Skip to content

How to run the tests locally? #1339

Open
@PeterDaveHello

Description

I tried the instructions as readme says, but there are always errors there like:

+ rm -Rf v* src alias
+ mkdir src alias
    Aliases
    ✓ "nvm alias" should not accept aliases with slashes
    ✓ "nvm unalias" should not accept aliases with slashes
    ✓ Running "nvm alias <aliasname> <target>" again should change the target
    ✓ Running "nvm alias <aliasname>" should list but one alias.
    ✓ Running "nvm alias" lists implicit aliases when they do not exist
    ✓ Running "nvm alias" lists manual aliases instead of implicit aliases when present
    ✓ Running "nvm alias" should list all aliases.
      circular
      ✓ nvm_resolve_alias
      ✓ nvm_resolve_local_alias

      lts
N/A: version "N/A -> N/A" is not yet installed.

You need to run "nvm install N/A" to install it before using it.
mv: cannot move '/usr/bin/alias/lts' to '/usr/bin/alias/lts.bak': Permission denied
rm: cannot remove '/usr/bin/alias/lts/*': Permission denied
rm: cannot remove '/usr/bin/alias/lts/boron': Permission denied
rm: cannot remove '/usr/bin/alias/lts/argon': Permission denied
      ✗ "nvm alias" should ensure LTS alias dir exists

Tried on Ubuntu 12.04, 14.04 and 16.04, none of them can directly pass the test. Is there anything special need to be setup? I also tried to run travis ci with Ubuntu 14.04 (See https://travis-ci.org/PeterDaveHelloKitchen/nvm/builds/178530168), the tests also failed.

Thanks.

Metadata

Assignees

No one assigned

    Labels

    testingStuff related to testing nvm itself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions