Commit 10747196 by Alexander Makarov

Codeceoption adjustments

- Removed hacks since these are no longer required: https://github.com/Codeception/Codeception/commit/71db233985531f298264dc4ca0160d2aa1c83b7f - Removed unused helper classes - Added 2.0 style "actor" to config Thanks to @Ragazzo and @DavertMik for helping with it.
parent 0c701087
actor: Tester
paths:
tests: tests
log: tests/_log
......
<?php
namespace Codeception\Module;
// here you can define custom functions for CodeGuy
class CodeHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../unit/_bootstrap.php';
}
}
<?php
namespace Codeception\Module;
// here you can define custom functions for TestGuy
class TestHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../functional/_bootstrap.php';
}
}
<?php
namespace Codeception\Module;
// here you can define custom functions for WebGuy
class WebHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../acceptance/_bootstrap.php';
}
}
......@@ -11,7 +11,6 @@
class_name: WebGuy
modules:
enabled:
- WebHelper
- PhpBrowser
- common\tests\_helpers\FixtureHelper
# you can use WebDriver instead of PhpBrowser to test javascript and ajax.
......
......@@ -10,7 +10,6 @@ class_name: TestGuy
modules:
enabled:
- Filesystem
- TestHelper
- Yii2
- common\tests\_helpers\FixtureHelper
config:
......
......@@ -4,5 +4,3 @@
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: CodeGuy
modules:
enabled: [CodeHelper]
actor: Tester
paths:
tests: tests
log: tests/_log
......
<?php
namespace Codeception\Module;
// here you can define custom functions for CodeGuy
class CodeHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../unit/_bootstrap.php';
}
}
......@@ -4,6 +4,3 @@
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: CodeGuy
modules:
enabled:
- CodeHelper
actor: Tester
paths:
tests: tests
log: tests/_log
......
<?php
namespace Codeception\Module;
// here you can define custom functions for CodeGuy
class CodeHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../unit/_bootstrap.php';
}
}
......@@ -4,5 +4,3 @@
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: CodeGuy
modules:
enabled: [CodeHelper]
actor: Tester
paths:
tests: tests
log: tests/_log
......
<?php
namespace Codeception\Module;
// here you can define custom functions for CodeGuy
class CodeHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../unit/_bootstrap.php';
}
}
<?php
namespace Codeception\Module;
// here you can define custom functions for TestGuy
class TestHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../functional/_bootstrap.php';
}
}
<?php
namespace Codeception\Module;
// here you can define custom functions for WebGuy
class WebHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../acceptance/_bootstrap.php';
}
}
......@@ -11,7 +11,6 @@
class_name: WebGuy
modules:
enabled:
- WebHelper
- PhpBrowser
- common\tests\_helpers\FixtureHelper
# you can use WebDriver instead of PhpBrowser to test javascript and ajax.
......
......@@ -10,7 +10,6 @@ class_name: TestGuy
modules:
enabled:
- Filesystem
- TestHelper
- Yii2
- common\tests\_helpers\FixtureHelper
config:
......
......@@ -4,5 +4,3 @@
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: CodeGuy
modules:
enabled: [CodeHelper]
actor: Tester
paths:
tests: tests
log: tests/_log
......
<?php
namespace Codeception\Module;
class CodeHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../unit/_bootstrap.php';
}
}
<?php
namespace Codeception\Module;
class TestHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../functional/_bootstrap.php';
}
}
<?php
namespace Codeception\Module;
class WebHelper extends \Codeception\Module
{
public function _beforeSuite($settings = [])
{
include __DIR__.'/../acceptance/_bootstrap.php';
}
}
......@@ -11,7 +11,6 @@
class_name: WebGuy
modules:
enabled:
- WebHelper
- PhpBrowser
# you can use WebDriver instead of PhpBrowser to test javascript and ajax.
# This will require you to install selenium. See http://codeception.com/docs/04-AcceptanceTests#Selenium
......
......@@ -10,7 +10,6 @@ class_name: TestGuy
modules:
enabled:
- Filesystem
- TestHelper
- Yii2
config:
Yii2:
......
......@@ -4,6 +4,3 @@
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: CodeGuy
modules:
enabled:
- CodeHelper
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