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:
Test::Base will be installed as the dependency of Test::Nginx:
[root@kxyczhun3tx4bcks-1222589 ~]# sudo cpanm --notest Test::Nginx
--> Working on Test::Nginx
Fetching http://www.cpan.org/authors/id/A/AG/AGENT/Test-Nginx-0.29.tar.gz ... OK
Configuring Test-Nginx-0.29 ... OK
==> Found dependencies: Test::Base, IPC::Run, List::MoreUtils, Test::LongString
--> Working on Test::Base
Fetching http://www.cpan.org/authors/id/I/IN/INGY/Test-Base-0.89.tar.gz ... OK
Configuring Test-Base-0.89 ... OK
Can you reinstall Test::Nginx and see what happen?
我执行了一下 ,然后提示“you may need to install the t::APISIX module” ,但是./t/目录下是有APISIX.pm文件的额,这是怎么回事呢