Commit d0214ccb authored by Christian Keuerleber's avatar Christian Keuerleber
Browse files

TASK: cleanup output directory before running tests

parent 6ef592ca
Pipeline #7849 canceled with stage
......@@ -4,7 +4,20 @@ namespace Helper;
// here you can define custom actions
// all public methods declared in helper class will be available in $I
use Codeception\Exception\ModuleException;
use Codeception\Module\Filesystem;
class Monitoring extends \Codeception\Module
{
/**
* @param string[] $settings
* @throws ModuleException
*/
public function _beforeSuite($settings = []): void
{
$filesystem = $this->getModule('Filesystem');
/** @var Filesystem $filesystem */
$filesystem->cleanDir(Configuration::outputDir());
}
}
......@@ -22,5 +22,5 @@ class MonitoringTester extends \Codeception\Actor
{
use _generated\MonitoringTesterActions;
use Webdriver;
use Webdriver;
}
......@@ -7,7 +7,8 @@
actor: MonitoringTester
modules:
enabled:
- Webdriver:
- \Helper\Monitoring
- Filesystem
- WebDriver:
browser: chrome
url: https://my.typo3.org
......@@ -20,5 +21,4 @@ modules:
- '--disable-gpu'
- '--disable-dev-shm-usage'
- '--no-sandbox'
- \Helper\Monitoring
step_decorators: ~
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment