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
Revdep test file #90
Revdep test file #90
Conversation
stevieb9
commented
Jun 26, 2017
hi @stevieb9 , can you please squash the 2 commits into 1? |
can_ok( $mc, 'reverse_dependencies' ); | ||
can_ok( $mc, 'rev_deps' ); | ||
|
||
# isa_ok( $dist, 'MetaCPAN::Client::Distribution' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please remove this line?
|
||
my $rs = $mc->reverse_dependencies($module); | ||
|
||
isa_ok $rs, 'MetaCPAN::Client::ResultSet'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use parenthesis (you use them for can_ok
above and the mixture of styles is confusing)
my @revdeps; | ||
|
||
while (my $release = $rs->next){ | ||
is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parenthesis please
push @revdeps, $release->distribution; | ||
} | ||
|
||
is @revdeps > 2, 1, "revdep count for MetaCPAN::Client seems ok"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
1; | ||
}; | ||
|
||
is $ok, 1, "$_ is a valid reverse dependency"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
poke |
Hey Mickey,
Sorry for the delay. I've been packing/preparing for a move to another
province, so I've been quite busy.
I should be able to find the time over this weekend to get this cleaned up
properly.
Regards,
Steve
…On Fri, Aug 11, 2017 at 12:51 AM, Mickey ***@***.***> wrote:
poke
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#90 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMcCP9rBiWgrcTz_YbhSbQZ6voc_69PLks5sW_oGgaJpZM4OEyFJ>
.
|
hi, closing this until it's ready |
This is a recreation of PR #90. I have fixed up the styling and cleaned it up a bit. I couldn't find the original repo that had this commit so I just copied it. The original code was written by Steve Bertrand (@stevieb9). I also removed the counting of the tests themselves because it seems to be a fragile practice. We cannot control all of our reverse dependency and any additional one uploaded to CPAN would break any existing version until the counter is adjusted. I would also note this test takes a few seconds to run. Any automatic CI tsting would have to take that into account and monitored if it exceeds the timeout for the entire testing suite.