views:

53

answers:

1

This question is related to this question I asked before. I have multiple test files (A.t, B.t, C.t etc) created to test their respective module A, B, C & so on. But when I do a make test, it runs all the tests. But, when I'm working on a specific module say B, I'd like to run unit tests for that module. After I'm done with my changes, I'll run the whole suite.

So is there any way to do like make test B, which will run only the tests using B.t? And when I say some thing like "make test all" it runs all the tests under the "t" dir? Thanks.

+6  A: 

I just run the test that I want to run:

 % make; perl -Mblib t/B.t

You can do the same thing with prove, too.

brian d foy
Thank you, that was really simple.
John