Skip to content

api7/test-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-toolkit

Usage

Prerequset: clone the repo in the CI:

git clone https://github.com/api7/test-toolkit/ t/lib/toolkit

Use this in the test code:

  • encode json with key sorted
package.path = "t/lib/toolkit/?.lua;" .. package.path
local json = require("json")
json.encode({xxx = yy, a = b}, {sortkey = true})