@caustic-code/testing
exposes testing framework for other modules
Last updated 2 years ago by kostyapro .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @caustic-code/testing 
SYNC missed versions from official npm registry.

testing

Exposes testing frameworks for other modules to use in this project.

Currently using Mocha, Chai and TS-Node.

nyc and coveralls is used for code coverage.

source-map-support added for compatibility.

Sample test script to put into package.json:

{
  "scripts": {
    "test": "nyc mocha -r ts-node/register src/**/*.spec.ts --require source-map-support/register" ,
    "coverage": "nyc report --reporter=text-lcov | coveralls"
  },
}

Sample .travis.yml file:

language: node_js
node_js:
  - "node"
cache:
  directories:
    - "node_modules"
after_success: npm run coverage

Sample .nycrc file:

{
  "extension": [
    ".ts"
  ],
  "require": [
    "ts-node/register"
  ],
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "**/*.d.ts",
    "**/*.spec.ts"
  ],
  "reporter": [
    "text-summary",
    "html"
  ],
  "sourceMap": true,
  "instrument": true
}

Current Tags

  • 1.6.0                                ...           latest (2 years ago)

9 Versions

  • 1.6.0                                ...           2 years ago
  • 1.5.2                                ...           3 years ago
  • 1.5.0                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 14
Dependencies (10)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |