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

Fix failing test on PHP 7.4 with code coverage when skipping some tests #164

Merged
merged 2 commits into from
Jul 22, 2020

Conversation

clue
Copy link
Member

@clue clue commented Jul 10, 2020

This only reports an error on PHP 7.4 when executed like this:

$ vendor/bin/phpunit --coverage-text --exclude-group internet

This has been worked around by clearing garbage twice (see #156). Interestingly, this does not actually affect any of the excluded tests but only seems to show up at a later stage.

Builds on top of #156

This only reports an error on PHP 7.4 when executed like this:
$ vendor/bin/phpunit --coverage-text --exclude-group internet
@clue clue added this to the v1.3.1 milestone Jul 10, 2020
clue added a commit to clue-labs/reactphp that referenced this pull request Jul 10, 2020
The build error on PHP 7.4 will be addressed via
reactphp/dns#164. Interestingly, it fails in the
`FunctionalResolverTest` class and does not fail anymore by excluding
any other test file, e.g. `CoopExecutorTest`. It can only be reproduced
by running:

```
$ vendor/bin/phpunit --coverage-text --exclude-group internet
```

It can not be reproduced when running on any other PHP version, when
`ext-xdebug` is disabled, when coverage is not collected or when not
excluding this group.

This means the test failure is bogus.

We work around this by temporarily skipping one test case for now.
clue added a commit to clue-labs/reactphp that referenced this pull request Jul 10, 2020
The build error on PHP 7.4 will be addressed via
reactphp/dns#164. Interestingly, it fails in the
`FunctionalResolverTest` class and does not fail anymore by excluding
some other test cases. It can only be reproduced by running:

```
$ vendor/bin/phpunit --coverage-text --exclude-group internet
```

It can not be reproduced when running on any other PHP version, when
`ext-xdebug` is disabled, when coverage is not collected or when not
excluding this group.

This means the test failure is bogus.

We work around this by temporarily skipping some test case for now.
@clue clue requested a review from WyriHaximus July 22, 2020 08:00
@WyriHaximus WyriHaximus merged commit 8f85634 into reactphp:master Jul 22, 2020
@clue clue deleted the tests branch July 23, 2020 18:30
@clue clue modified the milestones: v1.3.1, v1.4.0 Sep 7, 2020
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