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

egoist/testen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testen NPM version NPM downloads testen badge

Run tests for multiple versions of Node.js in local env.
Automatically update testen badge in your README after running tests.

preview

Install

# if you are using `n`
$ npm install -g testen@0.1

# if you are using `nvm`, required node >= 4
$ npm install -g testen

Usage

# use system's default node version to run `npm test`
$ testen

# multiple versions
# please ensure the version you wanna test with was already intalled
$ testen -n 4.2.4 -n 5.6.0 -n 0.12.0

# override test script, default is '-- npm test'
$ testen -n 0.12.0 -n 4.2.4 -n 5.6.0 -- ava

Auto-update badge

Add ![testen badge]() to your README.md and it will automatically update the badge after running each test. Use --disable-badge or remove that mark to disable this behavior.

Read Node.js versions from package.json

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

CLI

$ testen --help

Usage:

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

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

  •  
  •  
  •