1.3 KiB
1.3 KiB
Unit Tests
Naxsi comes with unit tests. This is very useful for people who wants to modify naxsi, build packages, test it on exotic setups, … We try to keep our code coverage as high as possible.
This is how you can run them:
- Untar nginx code source in
/tmp/nginx/. - Setup naxsi for unit testing (from naxsi_src).
make rewill compile naxsi to run from/tmp/make deploywill deploy a minimal naxsi in/tmp/naxsi_ut/(running on high port)make testwill run the unit tests
- It will give you a pass/fail result.
- Look at the resulting
/tmp/naxsicov.html/to get a code coverage report.
If you're too lazy to run them, no worries, travis-ci is running them for every pull-request that you'll submit!
Coverity
Coverity is cool enough to allow open-source projects to use their cloud solutions for free. We do submit builds for every release. If you want to have access to detail results (ie. doing security assessment on naxsi), get in touch with us!