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

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?

spacewander avatar Mar 25 '21 11:03 spacewander

2021-03-25 20-12-48屏幕截图 我执行了一下 ,然后提示“you may need to install the t::APISIX module” ,但是./t/目录下是有APISIX.pm文件的额,这是怎么回事呢

StretchV avatar Mar 25 '21 12:03 StretchV