Are there any good automated test suites for Perl?

2019-03-13 09:34发布

Can someone suggest some good automated test suite framework for Perl?

14条回答
放荡不羁爱自由
2楼-- · 2019-03-13 09:40

I'd go for Test::More, or in general, anything that outputs TAP

查看更多
【Aperson】
3楼-- · 2019-03-13 09:41

Have you seen smolder?

"Smoke Test Aggregator used by developers and testers to upload (automated or manually) and view smoke/regression tests using the Test Anything Protocol. Details and trends are graphed and notifications provided via email or Atom feeds."

查看更多
\"骚年 ilove
4楼-- · 2019-03-13 09:43

we have to run all the test files manually for testing

You certainly want to be using prove (runs your test) and/or Module::Build (builds your code and then runs your tests using the same test harness code which prove uses internally.)

查看更多
爷、活的狠高调
5楼-- · 2019-03-13 09:43

Are you aware of the 'prove' utility (from App::Prove)? You can tell it to run all the tests recursively in a given directory, with or without verbosity, etc.

查看更多
兄弟一词,经得起流年.
6楼-- · 2019-03-13 09:46

If you're using ExtUtils::MakeMaker or Module::Build, then you can run all your tests automatically by entering the command "make test" or "Build test", which will execute any *.t files in your project's t/ subfolder.

If you're not using either of these, then you can use TAP::Harness to automate execution of multiple test scripts.

To actually write the tests, use Test::More or any of the modules that others have suggested here.

查看更多
淡お忘
7楼-- · 2019-03-13 09:48

Check out CPAN Testers, which have a lot of tools for automated testing. Most of that should be on CPAN so you'll be able to modify it to meet your needs. It's also very easy to write your own tester using TAP::Harness.

What exactly do you need to do and how are you trying to fit it into your process?

查看更多
登录 后发表回答