chutzpah-watch

1.0.23 • Public • Published

npm-v1.0

build-passing

node-v8

isc-license

chutzpah-watch está mirando tus archivos...

Welcome to Chutzpah-Watch

chutzpah cli will run tests cases in watch mode. Whenever there is change in file, it will run the same test file.

Installation

#Run below script to install globally
npm install chutzpah-watch -g

Features

Usage

Create Chutzpah-Watch.json file in your code base then run below script.

 # Execute a script as: 
 chutzpah watch --config chutzpah-watch.json

 # OR run script with aliases:
chutzpah w -c chutzpah-watch.json

Once you run script, it will show below message:

Watching test cases in below listed directories: ['dir1','dir2'...]

Now if you change any test file and save, it will run the test automatically and display the result.

Chutzpah-Watch.json

JSON file with all of the parameters required to configure runing test in watch mode. Below is one sample for chutzpha-watch.json file. Supported CLI options can be found from Chutzpah Command Line Option

{
    "watchConfig": {
        "recursive": true,
        "filter": "(.tests|.spec).ts$"
    },
    "cliOptions": [
        "nologo",
        "openInBrowser chrome"
    ],
    "exePath": "C:/temp/Chutzpah.4.3.3/tools",
    "dirsToSkip": [
        "node_modules",
        "node_scripts",
        "interface",
        "lib"
    ]
}

Dependencies

Chutzpah needs to be installed please refer to CHUTZPAH OFFICIAL PAGE to download chutzpah at your desk. You can pass the chutzpah exe path in Chutzpah-Watch.json

How It Works

It scans the directory and filter outs the files based on the configurations given. Starts watching the changes on those files and whenever change detected then it executes chutzpah.console.exe /path changedfile.spec.ts

Please check Chutzpah Command Line Option already has flags which we can pass to run chutzpah in command line.

Package Sidebar

Install

npm i chutzpah-watch

Weekly Downloads

0

Version

1.0.23

License

ISC

Unpacked Size

9.7 kB

Total Files

6

Last publish

Collaborators

  • roopkt