spacewander commented on a change in pull request #2941:
URL: https://github.com/apache/apisix/pull/2941#discussion_r535866953
##########
File path: doc/how-to-build.md
##########
@@ -119,17 +119,29 @@ Makefile rules:
### Troubleshoot Testing
**Set Nginx Path**
+
- If you run in to an issue `Error unknown directive "lua_package_path" in
/API_ASPIX/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**
+
+Because the test case of `apisix` depends on the
https://github.com/api7/test-toolkit test kit. Therefore, before running a
single test case, you need to execute `make test` to automatically download the
test kit or manually clone the `test-toolkit` to the `apisix/t/` directory:
+
+```shell
+git clone https://github.com/api7/test-toolkit/ t/toolkit
Review comment:
Do we need this after https://github.com/apache/apisix/pull/2934?
And this command is incorrect. Running it will get `fatal: destination path
't/toolkit' already exists and is not an empty directory.`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]