Skip Menu |
 

This queue is for tickets about the Dist-Zilla-Plugin-Test-Compile CPAN distribution.

Report information
The Basics
Id: 115982
Status: stalled
Priority: 0/
Queue: Dist-Zilla-Plugin-Test-Compile

People
Owner: ether [...] cpan.org
Requestors: SHLOMIF [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Emit the compilation stderr output as diag() if "is ($?, 0)" failed.
Download (untitled) / with headers
text/plain 285b
Hi! Currently if «is($?, 0, "$lib loaded ok");» fails no extra output is given so it's hard to know what went wrong. See http://www.cpantesters.org/cpan/report/b64f5120-42db-11e6-a0aa-924a63f69d7e for instance. Please emit @_warnings as diag in that case. Regards, -- Shlomi Fish
Download (untitled) / with headers
text/plain 540b
On 2016-07-08 08:50:43, SHLOMIF wrote: Show quoted text
> Hi! > > Currently if «is($?, 0, "$lib loaded ok");» fails no extra output is > given so it's hard to know what went wrong. See > http://www.cpantesters.org/cpan/report/b64f5120-42db-11e6-a0aa- > 924a63f69d7e for instance. Please emit @_warnings as diag in that > case.
@_warnings are *always* emitted if there are any -- see https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-Test-Compile-2.054/lib/Dist/Zilla/Plugin/Test/Compile.pm#L659-663 so I'm not sure if there's anything else I can do?
Download (untitled) / with headers
text/plain 917b
Hi Karen, On Fri Jul 08 13:47:31 2016, ETHER wrote: Show quoted text
> On 2016-07-08 08:50:43, SHLOMIF wrote:
> > Hi! > > > > Currently if «is($?, 0, "$lib loaded ok");» fails no extra output is > > given so it's hard to know what went wrong. See > > http://www.cpantesters.org/cpan/report/b64f5120-42db-11e6-a0aa- > > 924a63f69d7e for instance. Please emit @_warnings as diag in that > > case.
> > @_warnings are *always* emitted if there are any -- see > https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-Test-Compile- > 2.054/lib/Dist/Zilla/Plugin/Test/Compile.pm#L659-663 > so I'm not sure if there's anything else I can do?
Maybe if you include "or diag(explain(@_warnings))" we could have a better idea what kind of warnings were generated during the test. I tried to reproduce the failing test from one distribution of Shlomif but it just worked as expected. The additional information should help with troubleshooting.
Download (untitled) / with headers
text/plain 1.1k
On 2016-07-08 11:43:24, ARFREITAS wrote: Show quoted text
> Hi Karen, > > On Fri Jul 08 13:47:31 2016, ETHER wrote:
> > On 2016-07-08 08:50:43, SHLOMIF wrote:
> > > Hi! > > > > > > Currently if «is($?, 0, "$lib loaded ok");» fails no extra output > > > is > > > given so it's hard to know what went wrong. See > > > http://www.cpantesters.org/cpan/report/b64f5120-42db-11e6-a0aa- > > > 924a63f69d7e for instance. Please emit @_warnings as diag in that > > > case.
> > > > @_warnings are *always* emitted if there are any -- see > > https://metacpan.org/source/ETHER/Dist-Zilla-Plugin-Test-Compile-2.054/lib/Dist/Zilla/Plugin/Test/Compile.pm#L659-663 > > so I'm not sure if there's anything else I can do?
> > Maybe if you include "or diag(explain(@_warnings))" we could have a > better idea what kind of warnings were generated during the test. I > tried to reproduce the failing test from one distribution of Shlomif > but it just worked as expected. The additional information should help > with troubleshooting.
As I said, *the warnings already are printed*. You can see this for yourself by deliberately introducing a 'die' into a module file being tested, and observe the error.
Download (untitled) / with headers
text/plain 131b
I need more information about the failure vector before I can continue, as I believe all diagnostic information is already printed.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.