san-cli-test

0.0.6 • Public • Published

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命令行参数也都是支持的。

Package Sidebar

Install

npm i san-cli-test

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

5.23 kB

Total Files

7

Last publish

Collaborators

  • glen1021