apisix
apisix copied to clipboard
request help: When I execute a test case, I report an error:you may need to install the Test::Base module
Issue description
n the apisix directory,I did “sudo cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)”,then did “git clone https://github.com/iresty/test-nginx.git” ,then did "export PERL5LIB=.:$PERL5LIB" then did “prove -Itest-nginx/lib -r t/plugin/openid-connect.t”, finally An error occurred:“you may need to install the Test::Base module”
Environment
- apisix version (cmd:
apisix version):2.3 - OS (cmd:
uname -a): - OpenResty / Nginx version (cmd:
nginx -Voropenresty -V): - etcd version, if have (cmd: run
curl http://127.0.0.1:9090/v1/server_infoto get the info from server-info API): - apisix-dashboard version, if have:
I refer to the “https://github.com/apache/apisix/blob/master/docs/zh/latest/how-to-build.md” ,but,I don't know how to operate this sentence: “通过 perl 的 prove 命令来加载 test-nginx 的库,并运行 /t 目录下的测试案例集: 追加当前目录到perl模块目录: export PERL5LIB=.:$PERL5LIB”
Duplicate of #3908