From 97cfea058d78018781a5afce0363a8d0b2a9cad2 Mon Sep 17 00:00:00 2001 From: Dmitry Baev Date: Thu, 7 Dec 2023 17:43:09 +0000 Subject: [PATCH 1/3] fix site link --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1cdddfd..7a3444c 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "allure-framework/allure-codeception", "keywords":["codeception", "testing", "report", "steps", "attachments", "cases", "allure"], "description": "Allure Codeception integration", - "homepage": "http://allure.qatools.ru/", + "homepage": "https://allurereport.org/", "license": "Apache-2.0", "authors": [ { From 8399110763b194912191c6476b74a5ec78d5543d Mon Sep 17 00:00:00 2001 From: Edward Surov Date: Mon, 27 May 2024 15:20:32 +0300 Subject: [PATCH 2/3] fix extension initialization (fixes #123, via #126) --- .github/workflows/build.yml | 15 +++++---------- README.md | 2 +- src/AllureCodeception.php | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62af546..7326fda 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,7 @@ jobs: - "8.0" - "8.1" - "8.2" + - "8.3" os: - ubuntu-latest - windows-latest @@ -29,10 +30,7 @@ jobs: - "--prefer-lowest" steps: - name: Checkout - uses: actions/checkout@v3.5.0 - - - name: Validate composer.json and composer.lock - run: composer validate + uses: actions/checkout@v4 - name: Set up PHP ${{ matrix.php-version }} uses: shivammathur/setup-php@v2 @@ -42,6 +40,9 @@ jobs: coverage: xdebug ini-values: error_reporting=E_ALL + - name: Validate composer.json and composer.lock + run: composer validate + - name: Install dependencies run: composer update --prefer-dist @@ -49,10 +50,4 @@ jobs: ${{ matrix.composer-options }} - name: Run tests - if: ${{ matrix.php-version != '8.2' }} - run: composer test - - - name: Run tests (experimental) - if: ${{ matrix.php-version == '8.2' }} - continue-on-error: true run: composer test diff --git a/README.md b/README.md index 00aa2e2..9d5abdf 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ extensions: outputDirectory: allure-results linkTemplates: issue: https://example.org/issues/%s - setipHook: My\SetupHook + setupHook: My\SetupHook ``` `outputDirectory` is used to store Allure results and will be calculated diff --git a/src/AllureCodeception.php b/src/AllureCodeception.php index cbcabc9..ba9dbf4 100644 --- a/src/AllureCodeception.php +++ b/src/AllureCodeception.php @@ -68,7 +68,21 @@ final class AllureCodeception extends Extension * @throws ConfigurationException * phpcs:disable PSR2.Methods.MethodDeclaration.Underscore */ + public function _initialize(): void + { + parent::_initialize(); + $this->reconfigure(); + } + + /** + * @throws ConfigurationException + */ public function moduleInit(): void + { + $this->reconfigure(); + } + + private function reconfigure(): void { QametaAllure::reset(); $this->testLifecycle = null; From 854320894b5e65952eb0cafd1555e9efb4543350 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 10:54:01 +0100 Subject: [PATCH 3/3] update psalm/plugin-phpunit requirement from ^0.18.4 to ^0.19.0 (via #128) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7a3444c..7cdc834 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "allure-framework/allure-php-commons": "^2.3.1" }, "require-dev": { - "psalm/plugin-phpunit": "^0.18.4", + "psalm/plugin-phpunit": "^0.19.0", "remorhaz/php-json-data": "^0.5.3", "remorhaz/php-json-path": "^0.7.7", "squizlabs/php_codesniffer": "^3.7.2",