这是indexloc提供的服务,不要输入任何密码
Skip to content

egoist/testen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testen NPM version NPM downloads testen badge

Run tests for multiple versions of Node.js in local env.

preview

Install

You should have nvm and node >= 4 installed.

$ npm install -g testen

Usage

$ testen

This will run npm test script, if .travis.yml or circle.yml exists, use node versions in it. Otherwise use preset node versions.

Sometimes you wanna override these node versions, just pass -n to do this:

$ testen -n 0.10 -n 0.12

# use system default node version
# -s/--system
$ testen -s

Read Node.js versions from package.json

{
  "testen": {
    "node": ["0.12.0", "5", "4.2.4"]
  }
}

Read test command from package.json

{
  "testen": {
    "test": "npm run test:custom"
  }
}

Auto-update badge

Run testen and you will know how to do this.

CLI

$ testen --help

Usage:

  -s/--system:          Use current node version
  -n/--node [version]:  Add a node version to test
  -- [command]:         The test command you expect
  --disable-badge:      Disable auto-update testen badge
  -V/--verbose:         Always output everything
                          ~ example: there are `console.log` in test

Related

testen has a good chemistry with kanpai:

preview

License

MIT © EGOIST

About

✔️ Run tests for multiple versions of Node.js in local env.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •