Skip to content

Commit

Permalink
Allow skipping custom tests (copy/paste from "driver-testsuite") (#47)
Browse files Browse the repository at this point in the history
* Allow skipping custom tests (copy/paste from "driver-testsuite")

* Code adjusted as per review comments
  • Loading branch information
aik099 authored Nov 12, 2024
1 parent 61b12d0 commit 8e3c6ca
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Custom/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,16 @@ protected function getConfig(): WebdriverClassicConfig
{
return WebdriverClassicConfig::getInstance();
}

/**
* @before
*/
protected function checkSkippedTest(): void
{
$message = self::getConfig()->skipMessage(get_class($this), $this->getName(false));

if (null !== $message) {
$this->markTestSkipped($message);
}
}
}

0 comments on commit 8e3c6ca

Please sign in to comment.