Add busted unit testing framework for lua code

This commit is contained in:
Zenara Daley 2018-04-23 10:46:28 -04:00
parent 62895ffd0b
commit 4f9865529a
8 changed files with 97 additions and 1 deletions

View file

@ -99,6 +99,16 @@ $ cd $GOPATH/src/k8s.io/ingress-nginx
$ make e2e-test
```
To run unit-tests for lua code locally, run:
```console
$ cd $GOPATH/src/k8s.io/ingress-nginx
$ ./rootfs/etc/nginx/lua/test/up.sh
$ make lua-test
```
Lua tests are located in `$GOPATH/src/k8s.io/ingress-nginx/rootfs/etc/nginx/lua/test`. When creating a new test file it must follow the naming convention `<mytest>_test.lua` or it will be ignored.
## Releasing
All Makefiles will produce a release binary, as shown above. To publish this