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

Use PHPUnit7 as the primary test runner for PHP versions >= 7.1 when using the phpunit script #17615

Merged
merged 1 commit into from
Jun 20, 2020

Conversation

seamuslee001
Copy link
Contributor

@seamuslee001 seamuslee001 commented Jun 15, 2020

Overview

This updates our phpunit script to choose to use PHPUnit 7 as the primary PHPUnit runner when the PHP Unit version is 7.1 or greater. This is in part to help fix some Extension Manager tests on PHP7.4

Before

PHPUnit6 used as the primary runner

After

PHPUnit 7 used as the primary runner

At Present PHPUnit5 is still used as part of the Extension PR testing AFAIK and was being used until today (19.6.20) on the EXT-Matrix unit tests that has now been changed.

ping @mattwire @eileenmcnaughton @totten Note that this PR incorporates the changes in #17661

@civibot
Copy link

civibot bot commented Jun 15, 2020

(Standard links)

@civibot civibot bot added the master label Jun 15, 2020
@seamuslee001 seamuslee001 force-pushed the phpunit7_new branch 6 times, most recently from ccb2893 to 4675ba7 Compare June 19, 2020 08:00
@seamuslee001 seamuslee001 changed the title WIP Use PHPUnit7 Use PHPUnit7 as the primary test runner for PHP versions > 7.1 when using the phpunit script Jun 19, 2020
@seamuslee001 seamuslee001 force-pushed the phpunit7_new branch 2 times, most recently from 770620c to 56eb704 Compare June 19, 2020 08:15
@eileenmcnaughton
Copy link
Contributor

@seamuslee001 why > - aren't we only testing php 7.1+ on master?

@seamuslee001 seamuslee001 changed the title Use PHPUnit7 as the primary test runner for PHP versions > 7.1 when using the phpunit script Use PHPUnit7 as the primary test runner for PHP versions >= 7.1 when using the phpunit script Jun 19, 2020
@seamuslee001
Copy link
Contributor Author

@eileenmcnaughton just updated i meant >= PHP7.1 so this would capture all testing that is happening but if someone was still on PHP7.0 for some reason it would gracefully fallback to phpunit6

Fix tap printer
@eileenmcnaughton
Copy link
Contributor

If this works with our tests I think it's all good. We can easily respond if test issues emerge without impacting sites

@seamuslee001 seamuslee001 merged commit 65cb065 into civicrm:master Jun 20, 2020
@seamuslee001 seamuslee001 deleted the phpunit7_new branch June 20, 2020 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants