From e1dc594e3125407e9a45722698a9c32b75ae5f39 Mon Sep 17 00:00:00 2001 From: Ben Croker Date: Mon, 19 Feb 2024 07:50:47 -0600 Subject: [PATCH] 5.0.0-beta.1 --- CHANGELOG.md | 2 +- tests/README.md | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9921c5..6778fda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Release Notes for Snaptcha -## 5.0.0-beta.1 - Unreleased +## 5.0.0-beta.1 - 2024-02-19 ### Added diff --git a/tests/README.md b/tests/README.md index a0a6d5f..c865123 100644 --- a/tests/README.md +++ b/tests/README.md @@ -2,22 +2,18 @@ ## Static Analysis -To run static analysis on the plugin, -install [PHPStan for Craft CMS](https://github.com/craftcms/phpstan) and run the -following command from the root of your project. +To run static analysis on the plugin, install [PHPStan for Craft CMS](https://github.com/craftcms/phpstan) and run the following command from the root of your project. ```shell -./vendor/bin/phpstan analyse -c vendor/putyourlightson/craft-snaptcha/phpstan.neon --memory-limit 1G +php vendor/bin/phpstan analyse -c vendor/putyourlightson/craft-snaptcha/phpstan.neon --memory-limit 1G ``` ## Easy Coding Standard -To run the Easy Coding Standard on the plugin, -install [ECS for Craft CMS](https://github.com/craftcms/ecs) and run the -following command from the root of your project. +To run the Easy Coding Standard on the plugin, install [ECS for Craft CMS](https://github.com/craftcms/ecs) and run the following command from the root of your project. ```shell -./vendor/bin/ecs check -c vendor/putyourlightson/craft-snaptcha/ecs.php +php vendor/bin/ecs check -c vendor/putyourlightson/craft-snaptcha/ecs.php ``` ## Pest Tests @@ -31,11 +27,11 @@ composer require markhuot/craft-pest-core:^2.0.0-rc2 --dev Then run the following command from the root of your project. ```shell -php php vendor/bin/pest --test-directory=vendor/putyourlightson/craft-snaptcha/tests/pest +php vendor/bin/pest vendor/putyourlightson/craft-snaptcha/tests/pest --test-directory=vendor/putyourlightson/craft-snaptcha/tests/pest --colors --display-deprecations ``` Or to run a specific test. ```shell -php php vendor/bin/pest --test-directory=vendor/putyourlightson/craft-snaptcha/tests/pest --filter=CacheRequestTest +php vendor/bin/pest vendor/putyourlightson/craft-snaptcha/tests/pest --test-directory=vendor/putyourlightson/craft-snaptcha/tests/pest --colors --display-deprecations --filter=MySpecificTest ```