On 7/20/06, chromatic <[EMAIL PROTECTED]> wrote:
The problem with $Level is that people don't use it correctly. You want to solve this by providing another element of code that more people will have to use more frequently and hoping that they use it correctly. I'm not sure that's a good assumption to make.
I admit, I did not even know that it existed until recently. I guess I have not read the full documentation of Test::More and Test::Builder but I assume there are not many that do. [regarding documentation of $Test::Builder::Level]
Should it be in Test::More? Perhaps it should be in Test::Tutorial. I don't know. I welcome suggestions. Strangely, it's not come up in the five years since I wrote Test::Builder. Does that mean that people don't care? Does that mean that it's not important? I don't know.
I noticed that the numbers are showing the actual row number when using functions but I remember - probably incorrectly - that it was discussed somewhere and acknowladged as an a limitation. So since it did not bother me too much - after all if I really want to know recognize a test I can always give it a uniqe name - I have not even tried to find a solution. IMHO it should be mentioned in both Test::More and Test::Tutorial probably refering to the Test::Builder documentation. Once I understand how to use it I will also mention it in my training material. (as Shlomi earlier pointed out I should use it) regards Gabor