Skip to content

Commit

Permalink
chore(release): version v0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden committed Jul 6, 2022
1 parent 4718a7a commit e4525d8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ Apitest supports nearly 40 mock functions. For a detailed list, see [fake-js](ht

### @nullable

**Field maybe null**
**Marker field can be null**
> scope: unit res block
```
Expand Down
20 changes: 20 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Apitest 是一款使用类JSON的DSL编写测试用例的自动化测试工具
- [@partial](#partial)
- [@type](#type)
- [@optional](#optional)
- [@nullable](#nullable)
- [执行控制](#执行控制)
- [跳过](#跳过)
- [延时](#延时)
Expand Down Expand Up @@ -802,6 +803,25 @@ Apitest 支持近40个mock函数。详细清单见[fake-js](https://github.com/s
}
```

### @nullable

- 功能: 标记字段可为`null`
- 使用范围: 用例`res`数据块

```
{
test1: { @client("echo")
req: {
v1: null,
// v1: 3,
},
res: {
v1: 3, @nullable
}
}
}
```

## 执行控制

Apitest 允许测试用例或组通过 `run` 属性自定义执行逻辑。
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sigodenjs/apitest",
"description": "Apitest is declarative api testing tool with JSON-like DSL.",
"version": "0.12.0",
"version": "0.13.0",
"bin": {
"apitest": "dist/bin.js"
},
Expand Down

0 comments on commit e4525d8

Please sign in to comment.