perl-prove

How can I tell Perl's prove utility to ignore certain tests?

怎甘沉沦 提交于 2019-12-06 01:38:46
问题 Currently I run prove like this: prove -v -r . Is there a way to exclude files using regex? I could not see that in perldoc prove or the output of prove -H . 回答1: I usually do something like this: $ find t/ -name '*.t' ! -name '*timeout*' | xargs prove -l (skips slow timeout tests) 回答2: I managed to do this by using a sub-directory : $ tree t/ t/ ├── 01_tests.t ├── 02_tests.t ├── 03_tests.t └── ignored └── 01_ignored.t Then I do this to execute the normal tests: $ prove -v t/*.t t/01_tests.t

How can I tell Perl's prove utility to ignore certain tests?

一个人想着一个人 提交于 2019-12-04 07:22:27
Currently I run prove like this: prove -v -r . Is there a way to exclude files using regex? I could not see that in perldoc prove or the output of prove -H . creaktive I usually do something like this: $ find t/ -name '*.t' ! -name '*timeout*' | xargs prove -l (skips slow timeout tests) I managed to do this by using a sub-directory : $ tree t/ t/ ├── 01_tests.t ├── 02_tests.t ├── 03_tests.t └── ignored └── 01_ignored.t Then I do this to execute the normal tests: $ prove -v t/*.t t/01_tests.t ........ ok t/02_tests.t ........ ok t/03_tests.t ........ ok Result: PASS And this to execute the