Skip to content

Produce code coverage only once #215

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

Merged
merged 2 commits into from
Jun 5, 2015
Merged

Produce code coverage only once #215

merged 2 commits into from
Jun 5, 2015

Conversation

ddeboer
Copy link
Member

@ddeboer ddeboer commented Jun 4, 2015

This fixes the variations in code coverage we saw previously, due to hhvm finishing before any of the PHP builds.

This should fix variations in code coverage due to hhvm finishing before
any of the PHP builds. It should also make the tests run faster on Travis.
@ddeboer ddeboer force-pushed the produce-coverage-once branch from 54cccf3 to d076fab Compare June 4, 2015 21:39
- php: 5.6
env:
- PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
- COVERAGE=true

# only needed for the hackaround for https://github.com/symfony/symfony/issues/12868
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

afaik there is now an official method for this: http://symfony.com/blog/new-in-symfony-2-7-phpunit-bridge

do you want to try that as well? so we could clean up some of the tricks we did to avoid problems with the deprecation notices.

@wouterj i thought we are using this in the cmf now, but can't find the right place to point out. can you help us find the example?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbu just require symfony/phpunit-bridge and your ready. Then, fix all deprecations. After this, you're probably left with a few deprecations because:

  1. Legacy classes are used to remain BC
  2. Things can't be fixed nicely (the usage of factory-service in services.xml for instance)

For (1), you have to annotate your tests/testcases with @group legacy and for (2), you use the env variable SYMFONY_DEPRECATION_HELPER=weak.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot wouter! will try this in a separate PR then.

@dbu
Copy link
Contributor

dbu commented Jun 5, 2015

👍

dbu added a commit that referenced this pull request Jun 5, 2015
@dbu dbu merged commit ea6a685 into master Jun 5, 2015
@dbu dbu deleted the produce-coverage-once branch June 5, 2015 14:00
@lsmith77 lsmith77 removed the wip/poc label Jun 5, 2015
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.

4 participants