-
Notifications
You must be signed in to change notification settings - Fork 7
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
Alternative Include-default tests #19
base: master
Are you sure you want to change the base?
Alternative Include-default tests #19
Conversation
019e9f1
to
fc0a0e4
Compare
I like what you've done here. How close are we to being ready to merge / release? |
Dependency changes: @@ -86,11 +86,11 @@ "runtime" : { "requires" : { "Carp" : "0", - "Exporter" : "0", + "Exporter" : "5.57", "File::Basename" : "0", "File::Copy" : "0", "File::Find" : "0", - "File::Path" : "0", + "File::Path" : "2.01", "File::Spec" : "0.8", "perl" : "5.006", "strict" : "0", @@ -102,11 +102,17 @@ "CPAN::Meta" : "2.120900" }, "requires" : { + "B" : "0", "Cwd" : "0", "Data::Dumper" : "0", + "Exporter" : "5.57", "ExtUtils::MakeMaker" : "0", + "File::Path" : "2.01", "File::Spec" : "0.8", + "File::Spec::Functions" : "0", + "File::Temp" : "0", "Test::More" : "0", + "lib" : "0", "perl" : "5.006" } }
fc0a0e4
to
9831378
Compare
I've rebased this replacing the T:TD:T 0.004 with the pre-release of 0.005 ( w/ local merging ). Effective dependency changes in the commit message. the tests itself has been slightly restructured so the spew/slurp stages don't complicate understanding "What the test does" |
Its also possibly worth noticing that this patch by @mohawk2 does NOT change the behavior of "!include" ( Which it probably should ), but only changes the behavior of "!include_default". I'll gladly attempt to fix that when this patch gets approved as changes relative to this one ( But It will necessitate adding a module with slurp/spew in it to share it nicely. |
Fun fact: Looks like I can stick File::Slurper in tlib/ without creating any more dependencies than Test::TempDir::Tiny already does, and it greatly simplifies code without needing me to re-invent and re-write how slurping works: https://github.com/kentfredric/ExtUtils-Manifest/blob/fileslurper/t/maniskip.include-default.t |
573cedd
to
606cfd4
Compare
606cfd4
to
d55d35a
Compare
NB: Githubs commit ordering is completely bollocks now.
This order is much more logical. I've rebased/squashed things several times now: Recent changes primarily include:
The "Nuke POD" change was done in an independent commit to make future updates to this module easier where necessary. |
I think |
MANIFEST.SKIP doesn't matter at install time. It's only used to build the MANIFEST. |
Ah, that's right! |
@mohawk2 Yes, definitely. |
NB: I saw the IRC comment on this issue, but the box I run my irc stuff has now succumbed to hardware issues and no longer POSTs, so my IRC contact might be a little bit before its back. |
This branch incorporates the patches to Manifest.pm by @mohawk2 in pull #17.
However, it takes a different approach at testing, trying to put our best foot forwards in terms of not making the existing tests worse.
This sequence is of course, presently advisory, and commits can be squashed as needed.
Ideally I would make the file IO inside the test-case neater by having a tinyer version of Path::Tiny so you can more clearly see where the tests are happening and where the cruft is happening.
Additionally, this code would be substantially neater if dagolden/Test-TempDir-Tiny#7 was done.
My hope is this test will be 100% clear in exactly what it is testing, and why it is testing it.
There is by comparison nothing clear about: https://github.com/mohawk2/ExtUtils-Manifest/commit/4ab7d94a330848fb20d02bcbd5a5928d57ed3a9d#diff-58b9e890377f53ed47933c81a658843fR439