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: paths:
tests: tests tests: tests
log: tests/_log 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 @@ ...@@ -11,7 +11,6 @@
class_name: WebGuy class_name: WebGuy
modules: modules:
enabled: enabled:
- WebHelper
- PhpBrowser - PhpBrowser
- common\tests\_helpers\FixtureHelper - common\tests\_helpers\FixtureHelper
# you can use WebDriver instead of PhpBrowser to test javascript and ajax. # you can use WebDriver instead of PhpBrowser to test javascript and ajax.
......
...@@ -10,7 +10,6 @@ class_name: TestGuy ...@@ -10,7 +10,6 @@ class_name: TestGuy
modules: modules:
enabled: enabled:
- Filesystem - Filesystem
- TestHelper
- Yii2 - Yii2
- common\tests\_helpers\FixtureHelper - common\tests\_helpers\FixtureHelper
config: config:
......
...@@ -4,5 +4,3 @@ ...@@ -4,5 +4,3 @@
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. # RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: CodeGuy class_name: CodeGuy
modules:
enabled: [CodeHelper]
actor: Tester
paths: paths:
tests: tests tests: tests
log: tests/_log 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 @@ ...@@ -4,6 +4,3 @@
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. # RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: CodeGuy class_name: CodeGuy
modules:
enabled:
- CodeHelper
actor: Tester
paths: paths:
tests: tests tests: tests
log: tests/_log 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 @@ ...@@ -4,5 +4,3 @@
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. # RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: CodeGuy class_name: CodeGuy
modules:
enabled: [CodeHelper]
actor: Tester
paths: paths:
tests: tests tests: tests
log: tests/_log 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 @@ ...@@ -11,7 +11,6 @@
class_name: WebGuy class_name: WebGuy
modules: modules:
enabled: enabled:
- WebHelper
- PhpBrowser - PhpBrowser
- common\tests\_helpers\FixtureHelper - common\tests\_helpers\FixtureHelper
# you can use WebDriver instead of PhpBrowser to test javascript and ajax. # you can use WebDriver instead of PhpBrowser to test javascript and ajax.
......
...@@ -10,7 +10,6 @@ class_name: TestGuy ...@@ -10,7 +10,6 @@ class_name: TestGuy
modules: modules:
enabled: enabled:
- Filesystem - Filesystem
- TestHelper
- Yii2 - Yii2
- common\tests\_helpers\FixtureHelper - common\tests\_helpers\FixtureHelper
config: config:
......
...@@ -4,5 +4,3 @@ ...@@ -4,5 +4,3 @@
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. # RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: CodeGuy class_name: CodeGuy
modules:
enabled: [CodeHelper]
actor: Tester
paths: paths:
tests: tests tests: tests
log: tests/_log 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 @@ ...@@ -11,7 +11,6 @@
class_name: WebGuy class_name: WebGuy
modules: modules:
enabled: enabled:
- WebHelper
- PhpBrowser - PhpBrowser
# you can use WebDriver instead of PhpBrowser to test javascript and ajax. # 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 # This will require you to install selenium. See http://codeception.com/docs/04-AcceptanceTests#Selenium
......
...@@ -10,7 +10,6 @@ class_name: TestGuy ...@@ -10,7 +10,6 @@ class_name: TestGuy
modules: modules:
enabled: enabled:
- Filesystem - Filesystem
- TestHelper
- Yii2 - Yii2
config: config:
Yii2: Yii2:
......
...@@ -4,6 +4,3 @@ ...@@ -4,6 +4,3 @@
# RUN `build` COMMAND AFTER ADDING/REMOVING MODULES. # RUN `build` COMMAND AFTER ADDING/REMOVING MODULES.
class_name: CodeGuy 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