mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 23:56:29 +03:00
267 lines
11 KiB
JSON
267 lines
11 KiB
JSON
{
|
|
"manifests": {
|
|
"codeception/codeception": {
|
|
"manifest": {
|
|
"copy-from-recipe": {
|
|
"codeception.yml": "codeception.yml",
|
|
"tests/": "tests/"
|
|
},
|
|
"post-install-output": [
|
|
"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</>"
|
|
]
|
|
},
|
|
"files": {
|
|
"codeception.yml": {
|
|
"contents": [
|
|
"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",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Acceptance.suite.yml": {
|
|
"contents": [
|
|
"# 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",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Acceptance/.gitignore": {
|
|
"contents": [
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Functional.suite.yml": {
|
|
"contents": [
|
|
"# 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",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Functional/.gitignore": {
|
|
"contents": [
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Support/AcceptanceTester.php": {
|
|
"contents": [
|
|
"<?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",
|
|
" */",
|
|
"}",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Support/Data/.gitignore": {
|
|
"contents": [
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Support/FunctionalTester.php": {
|
|
"contents": [
|
|
"<?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",
|
|
" */",
|
|
"}",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Support/Helper/.gitignore": {
|
|
"contents": [
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Support/UnitTester.php": {
|
|
"contents": [
|
|
"<?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",
|
|
" */",
|
|
"}",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Support/_generated/.gitignore": {
|
|
"contents": [
|
|
"*",
|
|
"!.gitignore",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Unit.suite.yml": {
|
|
"contents": [
|
|
"# Codeception Test Suite Configuration",
|
|
"#",
|
|
"# Suite for unit or integration tests.",
|
|
"",
|
|
"actor: UnitTester",
|
|
"modules:",
|
|
" enabled:",
|
|
" - Asserts",
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/Unit/.gitignore": {
|
|
"contents": [
|
|
""
|
|
],
|
|
"executable": false
|
|
},
|
|
"tests/_output/.gitignore": {
|
|
"contents": [
|
|
"*",
|
|
"!.gitignore",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "726c0dbf2a82a3a3c0812898e999bac9f0cbce14"
|
|
}
|
|
}
|
|
}
|