From 9a45e9b1891eeba3828d09aa38a20d2c205d6263 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Mon, 8 Aug 2022 20:19:30 +0200 Subject: [PATCH 1/2] Adding upgrading instructions --- _posts/2022-07-28-codeception-5.markdown | 29 ++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/_posts/2022-07-28-codeception-5.markdown b/_posts/2022-07-28-codeception-5.markdown index fd0e3f34c..1a48fd36c 100644 --- a/_posts/2022-07-28-codeception-5.markdown +++ b/_posts/2022-07-28-codeception-5.markdown @@ -26,7 +26,7 @@ tests/ Unit/ ``` -All suite names will have their own namespace, as well as actor and helper classes: +All suite names have their own namespace, as well as actor and helper classes: ```php Date: Mon, 8 Aug 2022 21:09:39 +0200 Subject: [PATCH 2/2] Update 2022-07-28-codeception-5.markdown --- _posts/2022-07-28-codeception-5.markdown | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/_posts/2022-07-28-codeception-5.markdown b/_posts/2022-07-28-codeception-5.markdown index 1a48fd36c..41fbd9cc8 100644 --- a/_posts/2022-07-28-codeception-5.markdown +++ b/_posts/2022-07-28-codeception-5.markdown @@ -67,6 +67,31 @@ extensions: - Codeception\Extension\RunFailed ``` +Next steps: + +1. Rename your suite configuration files: + `acceptance.suite.yml` => `Acceptance.suite.yml` + `functional.suite.yml` => `Functional.suite.yml` + `unit.suite.yml` => `Unit.suite.yml` +2. Inside those configuration files, update to the new namespace: + ```yaml + modules: + enabled: + - Tests\Support\Helper\Unit + ``` +3. In your `composer.json`, update to the new namespace: + ```json + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + ``` +4. In your `tests/Support/Acceptance|Functional|UnitTester.php` files, update to the new namespace. +5. Run `vendor/bin/codecept build` to create the files in `tests/Support/_generated`. +6. Modify the namespaces in all your test/cest files. +7. Run the tests with capitalized suite names: `vendor/bin/codecept run Unit` + ## Attributes Annotations were an essential part of the Codeception testing framework. Even though they were not native language constructs, they proved to be quite good to separate a test from its metadata. We believe that test should not include code that doesn't belong to the test scenario. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy