Repository navigation
Conversation
|
What is the rationale for this proposed change? |
|
For supporting of feature: Putting sub { ... } to ok() method. |
|
I appreciate the desire for this functionality, but I cannot merge this pull request for a couple of reasons:
To do something like this it would have to be part of the Test2 tooling where active development still happens. That said I do not anticipate adding this to the standard ok() from Test2 because once again it could break things, and for sure breaks expectations. That said the Test2 tooling makes it very easy for you to implement an ok() of your own that does this, and to create a bundle of Test2 tools that includes the standard ones, but overrides ok() with your own. If you are interested in that I would be happy to point you at the right docs, or even discuss it with you and help you get there. |
|
Same realized in subtest(): subtest 'some name' => sub { Same code samples, may be very usefull in test-coding practice! |
|
Subtests are an unrelated concept. I am not going to break compatibility by doing this. I am happy to help you use Test2 and a custom ok() if you would like. |
|
Ok, but what's about support? I found in CPAN tests with "sub" in ok(), it was mistakes of developers, may be need to merge my patch for community supporting? |
|
There are definitely numerous tests doing It is also not obvious what value this would provide over other options like a |
|
Ok! Reasonable argument! |
Call code in "ok" method
Looking to test.