参考:https://metacpan.org/pod/Test::Class#TO-DO-TESTS
[popexizhi: 这里有个问题 环境变量 TEST_METHOD , 如果拼写错误是不会报错的只是没有正常执行,注意!]
Sometimes you just want to run a single test. Commenting out other tests or writing code to skip them can be a hassle, so you can specify the TEST_METHOD
environment variable. The value is expected to be a valid regular expression and, if present, only runs test methods whose names match the regular expression. Startup, setup, teardown and shutdown tests will still be run.
One easy way of doing this is by specifying the environment variable before the runtests
method is called.
Running a test named customer_profile
:
没有评论:
发表评论