hartman
Automatic mocha style unit test generator by dirs for common.js envinroment(node.js browserify).
Last updated 5 years ago by mizchi .
ISC · Original npm · Tarball · package.json
$ cnpm install hartman 
SYNC missed versions from official npm registry.

Hartman

Automatic mocha style unit test generator by dirs for common.js envinroment(node.js browserify).

Good for you.

npm install -g hartman

How to use

$ hartman --src src --test test --input js --ouput coffee --suffix spec
app/
	foo.js
	bar.js
spec/
	foo-spec.coffee
	bar-spec.coffee

Generated file

# require '../src/foo'
describe "src/foo", ->
  it "should be written"

Option files

hartman.json

{
  "srcDir": "src",
  "testDir": "spec",
  "inputType": "coffee",
  "outputType": "ts",
  "suffix": "spec"
}

and run hartman

LICENSE

MIT

Current Tags

  • 0.2.2                                ...           latest (5 years ago)

5 Versions

  • 0.2.2                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.1                                ...           8 years ago
  • 0.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 1
Last Month 7
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |