Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Closed
wants to merge 1 commit into from

Conversation

nicolas-grekas
Copy link
Member

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

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.

@@ -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");
Copy link
Member

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

Copy link
Member Author

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

Copy link
Member Author

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 :)

Copy link
Member Author

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

passthru("$COMPOSER install --prefer-source --no-progress --ansi");
copy('../../src/Symfony/Bridge/PhpUnit/SkippedTestsListener.php', './vendor/symfony/phpunit-bridge/SkippedTestsListener.php');
Copy link
Member Author

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

@nicolas-grekas nicolas-grekas force-pushed the skipped-listener branch 3 times, most recently from 2954693 to d78597e Compare October 10, 2015 05:58
@@ -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
Copy link
Member Author

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.

passthru("$COMPOSER install --prefer-source --no-progress --ansi");
symlink(realpath('../../src/Symfony/Bridge/PhpUnit/SkippedTestsListener.php'), './vendor/symfony/phpunit-bridge/SkippedTestsListener.php');
Copy link
Member Author

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

@nicolas-grekas
Copy link
Member Author

PR is ready for review, failures on Windows are not related

@nicolas-grekas
Copy link
Member Author

Split in two PRs, #16190 on 2.3 and #16189 on 2.8

@nicolas-grekas nicolas-grekas deleted the skipped-listener branch October 10, 2015 08:52
fabpot added a commit that referenced this pull request Oct 10, 2015
…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
nicolas-grekas added a commit that referenced this pull request Oct 10, 2015
…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
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.

3 participants