mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
Codeception 5 update (#1583)
Co-authored-by: Thomas Landauer <thomas@landauer.at>
This commit is contained in:
committed by
GitHub
parent
282ef7409d
commit
054eef6640
19
codeception/codeception/5.0/codeception.yml
Normal file
19
codeception/codeception/5.0/codeception.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace: App\Tests
|
||||
support_namespace: Support
|
||||
paths:
|
||||
tests: tests
|
||||
output: tests/_output
|
||||
data: tests/Support/Data
|
||||
support: tests/Support
|
||||
envs: tests/_envs
|
||||
actor_suffix: Tester
|
||||
extensions:
|
||||
enabled:
|
||||
- Codeception\Extension\RunFailed
|
||||
params:
|
||||
- .env
|
||||
- .env.test
|
||||
settings:
|
||||
shuffle: true
|
||||
colors: true
|
||||
report_useless_tests: true
|
||||
6
codeception/codeception/5.0/manifest.json
Normal file
6
codeception/codeception/5.0/manifest.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"copy-from-recipe": {
|
||||
"codeception.yml": "codeception.yml",
|
||||
"tests/": "tests/"
|
||||
}
|
||||
}
|
||||
13
codeception/codeception/5.0/post-install.txt
Normal file
13
codeception/codeception/5.0/post-install.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
File codeception.yml created <- Global configuration
|
||||
tests/Unit created <- Unit tests
|
||||
tests/Unit.suite.yml written <- Unit tests suite configuration
|
||||
tests/Functional created <- Functional tests
|
||||
tests/Functional.suite.yml written <- Functional tests suite configuration
|
||||
tests/Acceptance created <- Acceptance tests
|
||||
tests/Acceptance.suite.yml written <- Acceptance tests suite configuration
|
||||
<info>Codeception is installed for acceptance, functional, and unit testing</>
|
||||
<options=bold>Next steps:</>
|
||||
1. Edit <options=bold>tests/Functional.suite.yml</> to enable Doctrine module if needed
|
||||
2. Create your first acceptance test using <comment>vendor/bin/codecept generate:cest Acceptance First</>
|
||||
3. Write your first test in <options=bold>tests/Acceptance/FirstCest.php</>
|
||||
4. Run tests using: <comment>vendor/bin/codecept run</>
|
||||
16
codeception/codeception/5.0/tests/Acceptance.suite.yml
Normal file
16
codeception/codeception/5.0/tests/Acceptance.suite.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
# Codeception Test Suite Configuration
|
||||
#
|
||||
# Suite for acceptance tests.
|
||||
# Perform tests in browser using the WebDriver or PhpBrowser.
|
||||
# If you need both WebDriver and PHPBrowser tests - create a separate suite.
|
||||
|
||||
actor: AcceptanceTester
|
||||
modules:
|
||||
enabled:
|
||||
- PhpBrowser:
|
||||
url: https://localhost:8000
|
||||
# add Codeception\Step\Retry trait to AcceptanceTester to enable retries
|
||||
step_decorators:
|
||||
- Codeception\Step\ConditionalAssertion
|
||||
- Codeception\Step\TryTo
|
||||
- Codeception\Step\Retry
|
||||
0
codeception/codeception/5.0/tests/Acceptance/.gitignore
vendored
Normal file
0
codeception/codeception/5.0/tests/Acceptance/.gitignore
vendored
Normal file
15
codeception/codeception/5.0/tests/Functional.suite.yml
Normal file
15
codeception/codeception/5.0/tests/Functional.suite.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
# Codeception Test Suite Configuration
|
||||
#
|
||||
# Suite for functional tests
|
||||
# Emulate web requests and make application process them
|
||||
|
||||
actor: FunctionalTester
|
||||
modules:
|
||||
enabled:
|
||||
- Asserts
|
||||
- Symfony:
|
||||
app_path: 'src'
|
||||
environment: 'test'
|
||||
# - Doctrine2:
|
||||
# depends: Symfony
|
||||
# cleanup: true
|
||||
0
codeception/codeception/5.0/tests/Functional/.gitignore
vendored
Normal file
0
codeception/codeception/5.0/tests/Functional/.gitignore
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Support;
|
||||
|
||||
/**
|
||||
* Inherited Methods
|
||||
*
|
||||
* @method void wantTo($text)
|
||||
* @method void wantToTest($text)
|
||||
* @method void execute($callable)
|
||||
* @method void expectTo($prediction)
|
||||
* @method void expect($prediction)
|
||||
* @method void amGoingTo($argumentation)
|
||||
* @method void am($role)
|
||||
* @method void lookForwardTo($achieveValue)
|
||||
* @method void comment($description)
|
||||
* @method void pause($vars = [])
|
||||
*
|
||||
* @SuppressWarnings(PHPMD)
|
||||
*/
|
||||
class AcceptanceTester extends \Codeception\Actor
|
||||
{
|
||||
use _generated\AcceptanceTesterActions;
|
||||
|
||||
/**
|
||||
* Define custom actions here
|
||||
*/
|
||||
}
|
||||
0
codeception/codeception/5.0/tests/Support/Data/.gitignore
vendored
Normal file
0
codeception/codeception/5.0/tests/Support/Data/.gitignore
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Support;
|
||||
|
||||
/**
|
||||
* Inherited Methods
|
||||
*
|
||||
* @method void wantTo($text)
|
||||
* @method void wantToTest($text)
|
||||
* @method void execute($callable)
|
||||
* @method void expectTo($prediction)
|
||||
* @method void expect($prediction)
|
||||
* @method void amGoingTo($argumentation)
|
||||
* @method void am($role)
|
||||
* @method void lookForwardTo($achieveValue)
|
||||
* @method void comment($description)
|
||||
* @method void pause($vars = [])
|
||||
*
|
||||
* @SuppressWarnings(PHPMD)
|
||||
*/
|
||||
class FunctionalTester extends \Codeception\Actor
|
||||
{
|
||||
use _generated\FunctionalTesterActions;
|
||||
|
||||
/**
|
||||
* Define custom actions here
|
||||
*/
|
||||
}
|
||||
0
codeception/codeception/5.0/tests/Support/Helper/.gitignore
vendored
Normal file
0
codeception/codeception/5.0/tests/Support/Helper/.gitignore
vendored
Normal file
30
codeception/codeception/5.0/tests/Support/UnitTester.php
Normal file
30
codeception/codeception/5.0/tests/Support/UnitTester.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Tests\Support;
|
||||
|
||||
/**
|
||||
* Inherited Methods
|
||||
*
|
||||
* @method void wantTo($text)
|
||||
* @method void wantToTest($text)
|
||||
* @method void execute($callable)
|
||||
* @method void expectTo($prediction)
|
||||
* @method void expect($prediction)
|
||||
* @method void amGoingTo($argumentation)
|
||||
* @method void am($role)
|
||||
* @method void lookForwardTo($achieveValue)
|
||||
* @method void comment($description)
|
||||
* @method void pause($vars = [])
|
||||
*
|
||||
* @SuppressWarnings(PHPMD)
|
||||
*/
|
||||
class UnitTester extends \Codeception\Actor
|
||||
{
|
||||
use _generated\UnitTesterActions;
|
||||
|
||||
/**
|
||||
* Define custom actions here
|
||||
*/
|
||||
}
|
||||
2
codeception/codeception/5.0/tests/Support/_generated/.gitignore
vendored
Normal file
2
codeception/codeception/5.0/tests/Support/_generated/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
8
codeception/codeception/5.0/tests/Unit.suite.yml
Normal file
8
codeception/codeception/5.0/tests/Unit.suite.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
# Codeception Test Suite Configuration
|
||||
#
|
||||
# Suite for unit or integration tests.
|
||||
|
||||
actor: UnitTester
|
||||
modules:
|
||||
enabled:
|
||||
- Asserts
|
||||
0
codeception/codeception/5.0/tests/Unit/.gitignore
vendored
Normal file
0
codeception/codeception/5.0/tests/Unit/.gitignore
vendored
Normal file
2
codeception/codeception/5.0/tests/_output/.gitignore
vendored
Normal file
2
codeception/codeception/5.0/tests/_output/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
Reference in New Issue
Block a user