https://github.com/api7/test-toolkit
https://github.com/api7/test-toolkit
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/api7/test-toolkit
- Owner: api7
- License: mit
- Created: 2020-11-12T01:50:11.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-19T12:29:47.000Z (about 4 years ago)
- Last Synced: 2023-03-03T21:32:44.695Z (almost 3 years ago)
- Language: Lua
- Size: 22.5 KB
- Stars: 1
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test-toolkit
## Usage
Prerequset: clone the repo in the CI:
```bash
git clone https://github.com/api7/test-toolkit/ t/lib/toolkit
```
Use this in the test code:
* encode json with key sorted
```lua
package.path = "t/lib/toolkit/?.lua;" .. package.path
local json = require("json")
json.encode({xxx = yy, a = b}, {sortkey = true})
```