-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Migration of PHPUnit XML Configuration file #4288
Comments
I'd be willing to provide such a migration in terms of code if you (or somebody else) takes care of integrating it into PHPUnit. Side note: Before a migration can/should be attempted, the "current" xml configuration file needs to pass the old schema. For that reason, we'd need to bundle the old and the new xsd. |
Thank you for volunteering, Arne. I can take care of integrating this into PHPUnit. Please note that this needs to be ready in time for PHPUnit 9.3 which is due on August 7, 2020. |
Thanks! Funny enough, I was already pondering if and how to detect what migration to run. Given that the XSD reference hasn't been around from the beginning and is technically optional, we do not really have a means to tell if a migration is needed and/or from what version. Correct? I didn't actually check when and where things changed over time. I presume that there might be more changes coming for upcoming versions of PHPUnit. Are we caring about these? Your skeleton code suggests that we "only" support migrating from 9.2 to 9.3, but doesn't yet tell on how to decide if any migration is needed. I take it that'll be your problem to solve? ;-) I might be overthinking / over engineering this, but my initial design in my fork started with coming up with a flexible migration stack where based on the "incoming" version a list of migrations might be performed. I also laid out various smaller migrations, so they can be run independently. Not sure yet, if that'll work since some things got moved around but i'll give it another go probably tomorrow evening. |
PHPUnit 9.3 introduces significant changes to PHPUnit's XML configuration file (
phpunit.xml
) for code coverage and logging:PHPUnit 9.2
PHPUnit 9.3
It would be nice if there would be a way to automatically migrate a PHPUnit 9.2 XML configuration file to the new PHPUnit 9.3 syntax.
The text was updated successfully, but these errors were encountered: