-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
suggested invocation too ponderous #3
Comments
For the record - I find the use of |
In my experiments, reporting diags when failing is an enormous amount of clutter when developing, particularly for any large dep chain. Having that on every test is crazy. Admittedly, my plan is to jam it into the *.t files with dzil, so I never have to write the boilerplate. That said, given Christian's comments, I'm inclined towards something like this:
That makes my recommended behavior easy, short and without the "if". It allows Peter or others who wish the full frontal %INC dump to opt into two increasing levels of frequency. Also, consider that the longer term goal per Andreas is to get the dump happening even for passing tests under AUTOMATED_TESTING so that his regression box can more easily find the culprits of failing tests. Thoughts? |
I am ok with the above import args. I am sad of the default changing but it is what it is, will have to add Regarding your last remark - probably You likely will end up wanting: |
The more I think about it, I think it's too soon to decide on these use cases. Thing might change if #1 gets figured out. I'm going to leave this open as a reminder |
Just a small note that i didn't make clear enough, i think. When i mention the boilerplate i meant all of it, including the T::M invocation. In other words: I think DiagINC should also load Test::More, so it doesn't need to be mentioned specifically. Due to how often DiagINC would be used, i think that's a fair shortcut to take. |
Ah! That's not going to happen. If someone wants to include it into Test::Most or if people want to role their own testing bundles like that, that's fine with me. But this single-purpose tool (which works even without Test::Builder) is not going to also become a bundler of other test modules. |
It's not particularly single-purpose if it's in every test script. It is in On 8 February 2014 13:55, David Golden [email protected] wrote:
|
Fwiw I do not see any harm in shipping a Test::More::DiagINC in the distribution, with the obvious behavior. |
I'm assuming here that the boilerplate suggested in the POD is the optimum combination you found through active use of the module. I'm not 100% sure i grok it right, but i'll assume that 99% of people would want to use it that way. That means i'd want to put your boilerplate in every test script i have. Which means both a lot of code duplication and a lot of copypasting or typing.
There should be some kind of invocation that puts the boilerplate in a single line with considerably fewer letters.
Ideas for this are either specific import options (talking with @ribasushi we didn't find any pleasant names yet) or a wrapper module that does what your boilerplate does.
The text was updated successfully, but these errors were encountered: