Skip to content
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

Test2 conversion #15

Closed
wants to merge 6 commits into from
Closed

Conversation

colinnewell
Copy link
Contributor

This converts from Test::Builder to the Test2::API which simplifies the multi-process testing as it is able to link up the test numbers.

This also includes the fix for #9 as that was necessary to ensure this worked.

@petdance
Copy link
Member

petdance commented Jan 8, 2018

Thanks for the time you put in on this. I do wish you'd consulted first before you spent the time, because I'm not sure that moving to Test2 is something we want to do. I'm not sure that Test2 is stable enough at this point, or that we want to require everyone to use Test2 in order to use Test::Perl::Critic. I'm hoping others can add their thoughts.

@colinnewell
Copy link
Contributor Author

I did this partially as an intellectual exercise to see how easy it was to do. It was actually a reasonably pleasant experience as everything needed was publicly available and the new code provides an easy way to deal with complex problems like multi-process testing.

If you don't want to merge this, and want to close the pull request I will understand. It does look like the path to conversion when the time is right should be relatively simple.

I haven't tested the upgrade path from old versions of Test::Builder to Test2::API, so I can't be sure how many issues are likely to be caused by an upgrade of your module switching to Test2.

One thought that had occurred to me when creating the changes was that the module could be cloned to provide a Test2 variant for people who found they wanted full Test2 compatibility. I don't really know whether that's worth doing though. Either way, do with it as you please.

@petdance
Copy link
Member

petdance commented Jan 9, 2018

If you don't want to merge this,

I don't know if we should or not. This thread is the only discussion we've had about it.

@colinnewell
Copy link
Contributor Author

The more that I think about this, the idea of a clone sounds like the best idea to me. We will probably take a closer look at the other open issues this week, but I have a suspicion that an in place upgrade to Test2 will cause backwards compatibility issues here and there. A Test2::Perl::Critic module might make more sense.

Assuming you go with that logic the next question is whether it's worth it. The multi-process potential of the module does probably mean that the newer Test2 infrastructure is a good idea. It's a lot cleaner and simpler to implement from this modules point of view, and it also appears to produce nicer looking results.

@petdance
Copy link
Member

Are you saying you want to make a Test2::Perl::Critic that you'll distribute and maintain? That sounds like a fine plan.

@petdance petdance closed this Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants