Skip to content

Commit

Permalink
5.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Feb 19, 2024
1 parent 75d6383 commit e1dc594
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release Notes for Snaptcha

## 5.0.0-beta.1 - Unreleased
## 5.0.0-beta.1 - 2024-02-19

### Added

Expand Down
16 changes: 6 additions & 10 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```

0 comments on commit e1dc594

Please sign in to comment.