muchi-ts
Annotation based test runner for JavaScript and TypeScript, written in TypeScript.
Last updated 8 months ago by machi27 .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install muchi-ts 
SYNC missed versions from official npm registry.

muchi-ts

muchi-ts is an annotation (decorator) based test runner for TypeScript and JavaScript languages.

Installation

  1. Install test runner.

    • npm: npm install --save-dev muchi-ts
    • yarn: yarn add --dev muchi-ts
  2. Install annotation type definition.

    • yarn: yarn add --dev https://github.com/machi1990/muchi-ts-types.git
    • npm: npm install --save-dev https://github.com/machi1990/muchi-ts-types.git

How to use

  • To run test files execute the runner with --tests or its short form -t options: muchi-ts --tests <path/to/test/files> or muchi --tests <regex-to-test-files->.
  • Watch mode is available using the --watch true or its short form -w true options. The default value is false.
  • -s time or its long form --timeOut time, provides a timeout option of stopping test execution if it depasses the provided time. The passed value represents time in milliseconds. The default value is 1000ms.
  • -h or --help is for how to use information
  • --version provides the version of the executable.

Coverage

muchi-ts integrates easily with nyc for coverage reports. Install nyc from npm (npm install --save-dev nyc) and run nyc muchi -t <your tests> to see the coverage reports. See Istanbul for more information on how to generate different formats of coverage reports.

Examples

Some sample tests are available here: https://github.com/machi1990/muchi-ts-samples

Author

Manyanda Chitimbo manyanda.chitimbo@gmail.com

Current Tags

  • 2.3.8                                ...           latest (8 months ago)

17 Versions

  • 2.3.8                                ...           8 months ago
  • 2.3.7                                ...           a year ago
  • 2.3.6                                ...           a year ago
  • 2.3.5                                ...           a year ago
  • 2.3.4                                ...           a year ago
  • 2.3.3                                ...           a year ago
  • 2.3.2                                ...           a year ago
  • 2.3.1                                ...           a year ago
  • 2.3.0                                ...           a year ago
  • 2.2.1                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 3
Last Month 17
Dependencies (9)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |