简体   繁体   English

如何一次在xt中运行测试?

[英]How to run test in xt at once?

是否可以从命令行一次在xt目录中运行测试?

The prove tool has many options you can tweak. prove工具具有许多可以调整的选项。 A useful invocation could be prove -l -r xt , which includes the lib/ folder in @INC , recurses into subdirectories, and starts in the xt folder. 有用的调用可以是prove -l -r xt ,它包括@INClib/文件夹,递归到子目录,并从xt文件夹开始。 This would run all test in a directory structure like 这将在目录结构中运行所有测试,例如

lib/
  Foo.pm
xt/
  000-start.t
  001-sometests/
    001-foo.t
    002-bar.t

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM