-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[ci] Collect and replay skipped tests #16184
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
Conversation
@@ -41,7 +41,16 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit")) { | |||
$zip->close(); | |||
chdir("phpunit-$PHPUNIT_VERSION"); | |||
passthru("$COMPOSER remove --no-update symfony/yaml"); | |||
passthru("$COMPOSER require --no-update symfony/phpunit-bridge ~2.8"); |
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.
why ? The Symfony project already depend on the bridge
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.
This is phpunit's composer.json
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.
I should try removing this :)
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.
Well, phpunit listeners are loaded before the bootstrapp file is included, which means we have to add phpunit-bridge to phpunit's composer.json, no choice
0a0cb93
to
2926946
Compare
passthru("$COMPOSER install --prefer-source --no-progress --ansi"); | ||
copy('../../src/Symfony/Bridge/PhpUnit/SkippedTestsListener.php', './vendor/symfony/phpunit-bridge/SkippedTestsListener.php'); |
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.
This line should be removed before merging. For now, it allows testing before subtree-splitting
2954693
to
d78597e
Compare
@@ -32,6 +33,7 @@ install: | |||
- IF %PHP%==1 cd .. | |||
- IF %PHP%==1 echo @php %%~dp0composer.phar %%* > composer.bat | |||
- IF %PHP%==1 copy /Y php.ini-development php.ini-min | |||
- IF %PHP%==1 echo max_execution_time=1200 >> php.ini-min |
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.
20 minutes is twice the time required for tests to run. This prevents blocking for appveyor queue for too long.
d78597e
to
7ae2634
Compare
passthru("$COMPOSER install --prefer-source --no-progress --ansi"); | ||
symlink(realpath('../../src/Symfony/Bridge/PhpUnit/SkippedTestsListener.php'), './vendor/symfony/phpunit-bridge/SkippedTestsListener.php'); |
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.
This line should be removed before merging. For now, it allows testing before subtree-splitting
7ae2634
to
d8c8fc7
Compare
PR is ready for review, failures on Windows are not related |
…d replay skipped tests (nicolas-grekas) This PR was merged into the 2.8 branch. Discussion ---------- [PhpUnitBridge] Add SkippedTestsListener to collect and replay skipped tests | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16184 | License | MIT | Doc PR | - Commits ------- dd640f5 [PhpUnitBridge] Add SkippedTestsListener to collect and replay skipped tests
…las-grekas) This PR was merged into the 2.3 branch. Discussion ---------- [ci] Enable collecting and replaying skipped tests | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #16184 | License | MIT | Doc PR | - Commits ------- 4032c88 [ci] Enable collecting and replaying skipped tests
This PR is targetted at speeding up our tests on appveyor by skipping
already succeeding tests when enabling addtional extensions.
Once it's confirmed it works, I'll port it to other branches.