apisix icon indicating copy to clipboard operation
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

Open StretchV opened this issue 5 years ago • 2 comments

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 -V or openresty -V):
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API):
  • apisix-dashboard version, if have:

StretchV avatar Mar 25 '21 11:03 StretchV

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”

StretchV avatar Mar 25 '21 11:03 StretchV

Duplicate of #3908

spacewander avatar Mar 25 '21 11:03 spacewander