This is a Kong middleware to log requests / responses using cerberus API.
The plugin folder should contain at least a schema.lua
and a handler.lua
, alongside with a spec
folder and a .rockspec
file specifying the current version of the package.
The .rockspec
file should follow LuaRocks' conventions
We're using busted to run our tests. Every test file should live in a spec
folder and end with _spec.lua
.
make test
or busted spec/
in the plugin folder should do the job.
remember to run it as super user if your current environment needs it.
If you're using our Makefile, just run make coverage
.
With Busted, a -c
flag will do the job.
It will generate a luacov.stats.out
that you can use to generate coverage reports.
You can run luacov
and it will generate a luacov.report.out
containing a comprehensive coverage report.
make lint
or luacheck -q .
in the plugin folder should run the linter.
made with ❤️ by Stone Payments