aria-mocha

Zero configuration CLI testing tool for nodejs and browser base

Usage no npm install needed!

<script type="module">
  import ariaMocha from 'https://cdn.skypack.dev/aria-mocha';
</script>

README

Coverage Status npm version License: MIT

aria-mocha

Zero configuration CLI testing tool for nodejs and browser base

Installation

  npm install --save-dev aria-mocha

CLI Options

  Usage
    $ aria-mocha [options]

  Options
    -d, --dir           Directory folder of spec or test files. (default: src)
    -t, --threshold     Enable the thresholds
    -r, --reporters     Output reporters.  (default lcov,html,text-summary)
    --check-coverage    Enable coverage  (default false)
    --include-dir       Directory folder source (default: src)
    --browser           Enable the browser base testing  (default false)
    -v, --version       Displays current version
    -h, --help          Displays this message

Quick Start

 aria-mocha 
  --dir demo \
  --check-coverage \
  --include-dir demo \
  --reporters lcov,html,text-summary \
  --threshold statements=50,functions=50,branches=50,lines=50