From 91104f6044c4df55bec4614bcdb142ab6c4ea642 Mon Sep 17 00:00:00 2001 From: Nirojan Selvanathan Date: Thu, 16 Jul 2020 19:38:00 +0200 Subject: [PATCH] Improve how to test instructions --- doc/how-to-build.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/how-to-build.md b/doc/how-to-build.md index b1a276eba37f..58ff1511a94a 100644 --- a/doc/how-to-build.md +++ b/doc/how-to-build.md @@ -117,10 +117,21 @@ Makefile rules: ### Troubleshoot -If you run in to an issue `Error unknown directive "lua_package_path" in /API_ASPIX/incubator-apisix/t/servroot/conf/nginx.conf` +**Set Nginx Path** + +- If you run in to an issue `Error unknown directive "lua_package_path" in /API_ASPIX/incubator-apisix/t/servroot/conf/nginx.conf` make sure to set openresty as default nginx. And export the path as below. -* export PATH=/usr/local/openresty/nginx/sbin:$PATH + - Linux default installation path: + * export PATH=/usr/local/openresty/nginx/sbin:$PATH + - OSx default installation path via homebrew: + * export PATH=/usr/local/opt/openresty/nginx/sbin:$PATH + +**Run Individual Test Cases** + +- Use the following command to run test cases constratined to a file: + - prove -Itest-nginx/lib -r t/plugin/openid-connect.t + ## 5. Update Admin API token to protect Apache APISIX