Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix SkippedTestSuite #41384

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 1 commit into from
Jul 4, 2021
Merged

Fix SkippedTestSuite #41384

merged 1 commit into from
Jul 4, 2021

Conversation

jderusse
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Throwing a TestSkipped in a setUpBeforeClass si handled by PHP unit as a standard exception, leading to a generic exception Test skipped because of an error in hook method (see https://github.com/symfony/symfony/pull/41380/checks?check_run_id=2645369759#step:14:165)

However phpunit is able to catch SkippedTestSuiteError in such situation.(https://github.com/sebastianbergmann/phpunit/blob/master/src/Framework/TestSuite.php#L438-L448)

This PR replaces self::markTestSkipped by throw new SkippedTestSuiteError (we don't have static method helper for this exception) in our setUpBeforeClass methods.

@jderusse jderusse changed the base branch from 5.4 to 4.4 May 23, 2021 13:18
@jderusse jderusse force-pushed the fix-skipped-suite branch from c3b95e1 to 28857b7 Compare May 23, 2021 14:38
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone May 26, 2021
@nicolas-grekas
Copy link
Member

But this method is now @internal. Maybe we should report this to phpunit before?

@jderusse
Copy link
Member Author

Issue opened in sebastianbergmann/phpunit#4689

@jderusse jderusse force-pushed the fix-skipped-suite branch from 28857b7 to 38f0fe9 Compare May 26, 2021 10:08
@fabpot
Copy link
Member

fabpot commented Jul 3, 2021

As there is no feedback upstream, can we merge this one in the meantime?

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

Let's go

@fabpot fabpot force-pushed the fix-skipped-suite branch from 38f0fe9 to 6f2aa6d Compare July 4, 2021 09:15
@fabpot
Copy link
Member

fabpot commented Jul 4, 2021

Thank you @jderusse.

1 similar comment
@fabpot
Copy link
Member

fabpot commented Jul 4, 2021

Thank you @jderusse.

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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.