node-test-runner
A no-setup test runner
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-test-runner -g
SYNC missed versions from official npm registry.
# node-test-runner

I hate to installed all my test dependencies into my project directory, now you can install node-test-runner globally to test all your node projects.

Install

$ npm install -g node-test-runner

Usage

Karma

Assuming you have a directory structure like:

├── src
│   ├── css
│   │   ├── class.js
│   │   └── style.js
│   ├── dom
│   │   ├── each.js
│   │   ├── is.js
│   │   ├── isType.js
│   │   └── manipulations.js
│   └── simple.js
└── tests
    ├── css
    │   ├── test-class.js
    │   └── test-style.js
    ├── dom
    │   └── test-each.js
    ├── helpers
    │   └── create-elements.js
    └── test-simple.js

Run:

# run karma test once
$ ntr karma
# run karma in watch mode
$ ntr karma --watch/-w

Or you can customize your own directory structure, just check out default Karma Configs, you can override all of them in .ntrrc file, like:

{
  "karma": {
    "files": [
      "spec/**/*Spec.js"
    ]
  }
}

License

MIT © EGOIST

Current Tags

  • 0.0.1                                ...           latest (5 years ago)

2 Versions

  • 0.0.1                                ...           5 years ago
  • 0.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (27)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |