# xsimpletest

> 简单的测试工具。

Latest version **1.0.8** (published 2019-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install xsimpletest
pnpm add xsimpletest
yarn add xsimpletest
bun add xsimpletest
```

Provides the command `x`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2019-04-14 |
| First published | 2019-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yisbug@qq.com |
| Maintainers | yisbug |

## Links

- npm: https://www.npmjs.com/package/xsimpletest
- npm.io page: https://npm.io/package/xsimpletest

## Dependencies (8)

- [colors](https://npm.io/package/colors.md) ^1.3.3
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.4.3
- [@babel/node](https://npm.io/package/@babel/node.md) ^7.2.2
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.4.3
- [@babel/register](https://npm.io/package/@babel/register.md) ^7.4.0
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.4.3
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^7.0.0

## Recent versions

- 1.0.8 (latest) — 2019-04-14
- 1.0.7 — 2019-04-14
- 1.0.6 — 2019-04-14
- 1.0.5 — 2019-04-14
- 1.0.4 — 2019-04-14
- 1.0.3 — 2019-04-14
- 1.0.2 — 2019-04-14
- 1.0.1 — 2019-04-14
- 1.0.0 — 2019-04-14

## README

### x

简单的测试工具。

### Why

实在记不住这些主流的测试框架的用法，我只想像写普通的模块一样写一些测试，简单的验证一些方法是否有效，so，只支持了一些有限的但是个人比较常用的功能。

包括断言库的 api 其实我也记不住，所以可以使用 `x --help` 列出断言库的所有 API，看到名字大概就知道怎么用了。

有空的话再增加一些其他功能和配置，先这么凑合着。

### Useage

```js
// util.test.js
const assert = require('assert').strict;
module.exports = async (it, assert) => {
  it('util.assign');
  const a = util.assign({}, { name: 'hi' });
  assert.deepEqual(a, { name: 'hi' });

  it('util.test');
};

// run util.test.js
x util
x ut // use regexp to match test files.
// run all test
x
```

### License

MIT

---
_Source: https://npm.io/package/xsimpletest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
