Skip to content

Commit 8e3c6ca

Browse files
authored
Allow skipping custom tests (copy/paste from "driver-testsuite") (#47)
* Allow skipping custom tests (copy/paste from "driver-testsuite") * Code adjusted as per review comments
1 parent 61b12d0 commit 8e3c6ca

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/Custom/TestCase.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,16 @@ protected function getConfig(): WebdriverClassicConfig
3737
{
3838
return WebdriverClassicConfig::getInstance();
3939
}
40+
41+
/**
42+
* @before
43+
*/
44+
protected function checkSkippedTest(): void
45+
{
46+
$message = self::getConfig()->skipMessage(get_class($this), $this->getName(false));
47+
48+
if (null !== $message) {
49+
$this->markTestSkipped($message);
50+
}
51+
}
4052
}

0 commit comments

Comments
 (0)