From be838adde5e871cb21c97c09ede1a29b20b3a292 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 28 Aug 2022 09:33:50 +0200 Subject: [PATCH] [TASK] Remove the ancient acceptance tests (#512) The acceptance tests have not been testing the extension itself, have not been maintained for quite some time, and do not serve as a good example anymore. Until we have a proper set of example acceptance tests, we should remove them. Also drop the now-unused dependency on Codeception. --- .gitattributes | 1 - CHANGELOG.md | 1 + Documentation/Running.rst | 20 ---------- Tests/Acceptance/StarterCest.php | 28 -------------- .../Acceptance/_support/AcceptanceTester.php | 25 ------------- .../Acceptance/_support/Helper/Acceptance.php | 12 ------ .../Acceptance/_support/_generated/.gitignore | 2 - codeception.yml | 37 ------------------- composer.json | 2 - phpcs.xml | 8 +--- phpstan.neon | 3 -- 11 files changed, 3 insertions(+), 136 deletions(-) delete mode 100644 Tests/Acceptance/StarterCest.php delete mode 100644 Tests/Acceptance/_support/AcceptanceTester.php delete mode 100644 Tests/Acceptance/_support/Helper/Acceptance.php delete mode 100644 Tests/Acceptance/_support/_generated/.gitignore delete mode 100644 codeception.yml diff --git a/.gitattributes b/.gitattributes index 75f3a26..4fc1008 100644 --- a/.gitattributes +++ b/.gitattributes @@ -11,7 +11,6 @@ /.phpstorm.meta.php export-ignore /.prettierrc.js export-ignore /Tests/ export-ignore -/codeception.yml export-ignore /package.json export-ignore /phive.xml export-ignore /phpcs.xml export-ignore diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c7a446..71ace87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Deprecated ### Removed +- Remove the ancient acceptance tests (#512) ### Fixed - Have all extension dependencies in the `ext_emconf.php` as well (#515) diff --git a/Documentation/Running.rst b/Documentation/Running.rst index 12eb4ee..532e36b 100644 --- a/Documentation/Running.rst +++ b/Documentation/Running.rst @@ -259,23 +259,3 @@ settings: - (*) Use alternative configuration file. - Use `.Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTests.xml`. - -.. _running-acceptance-tests: - -Running acceptance tests -======================== - -1. Make sure you have Chrome installed on your machine. -2. `Download the latest version of ChromeDriver `__. -3. Unzip it. -4. Execute `chromedriver --url-base=wd/hub`. -5. In another terminal, run `.Build/vendor/bin/codecept run`. - -.. _running-acceptance-tests-in-phpstorm: - -Running acceptance tests in PhpStorm -==================================== - -1. Make sure the "Codeception Framework" plugin is activated. -2. Right-click on `Tests/Acceptance/StarterCest.php`. -3. Run 'Acceptance (Codeception)'. diff --git a/Tests/Acceptance/StarterCest.php b/Tests/Acceptance/StarterCest.php deleted file mode 100644 index 11ab7ec..0000000 --- a/Tests/Acceptance/StarterCest.php +++ /dev/null @@ -1,28 +0,0 @@ -amOnPage('/'); - } - - public function seeAuthorName(\AcceptanceTester $I): void - { - $I->see('Oliver Klee'); - } - - public function canNavigateToPastWorkshops(\AcceptanceTester $I): void - { - $I->click('Workshops'); - $I->click('Rückblick'); - $I->see('2017 (17)'); - } -} diff --git a/Tests/Acceptance/_support/AcceptanceTester.php b/Tests/Acceptance/_support/AcceptanceTester.php deleted file mode 100644 index a42108f..0000000 --- a/Tests/Acceptance/_support/AcceptanceTester.php +++ /dev/null @@ -1,25 +0,0 @@ - - - Tests/Acceptance/_support/ - + @@ -67,9 +65,7 @@ - - Tests/Acceptance/ - + diff --git a/phpstan.neon b/phpstan.neon index 427225f..1087410 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -20,6 +20,3 @@ parameters: - Classes - Configuration - Tests - - excludePaths: - - Tests/Acceptance/