0.0.6 • Published 3 years ago

san-cli-test v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

san-cli-test

介绍

san-cli-test是一个专门为san-cli 4.0项目打造的测试插件

安装
npm install san-cli-test
使用
{
  "scripts": {
    "test": "san test"
  }
}

基于mochapack + expect运行单元测试

Usage: san test [options] [...files]

Options:

  --watch, -w   run in watch mode
  --grep, -g    only run tests matching <pattern>
  --slow, -s    "slow" test threshold in milliseconds
  --timeout, -t timeout threshold in milliseconds
  --bail, -b    bail after first test failure
  --require, -r require the given module before running tests
  --include     include the given module into test bundle

默认匹配文件是:任何在test/文件目录下,并且以.spec.js结尾的文件

所有的 mochapack命令行参数也都是支持的。