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

Remove usage of onNotSuccessfulTest to mark tests as skipped #65

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

stof
Copy link
Member

@stof stof commented Feb 14, 2023

Tests are not marked as skipped automatically anymore when an UnsupportedDriverActionException is caught. Instead, drivers should configure their unsupported tests properly in their testsuite config. PHPUnit 10 removed support for changing the test outcome in the onNotSuccessfulTest method of the TestCase so the previous solution will not work anymore in the future.

TODO: update all drivers to add the proper skipped tests in their config

  • BrowserKitDriver
  • GoutteDriver
  • Selenium2Driver
  • ZombieDriver

Tests are not marked as skipped automatically anymore when an
UnsupportedDriverActionException is caught. Instead, drivers should
configure their unsupported tests properly in their testsuite config.
PHPUnit 10 removed support for changing the test outcome in the
onNotSuccessfulTest method of the TestCase so the previous solution will
not work anymore in the future.
@stof stof force-pushed the remove_automatic_skipping branch from 4941f5b to 8f0c6d0 Compare June 12, 2023 11:39
@stof stof merged commit 307efdc into minkphp:master Sep 26, 2023
@stof stof deleted the remove_automatic_skipping branch September 26, 2023 16:17
acoulton pushed a commit to ingenerator/chrome-mink-driver that referenced this pull request Sep 30, 2024
Refs minkphp/driver-testsuite#65
Refs behat-chrome/chrome-mink-driver#143
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.

1 participant