2.3.8 • Published 5 years ago

muchi-ts v2.3.8

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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

2.3.8

5 years ago

2.3.7

5 years ago

2.3.6

6 years ago

2.3.5

6 years ago

2.3.4

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago