From 895f59444086a99ea46da63527a3c6185d0cf2f9 Mon Sep 17 00:00:00 2001
From: Tan Nguyen
Date: Thu, 2 Nov 2023 10:14:15 +0700
Subject: [PATCH] add pest test package
---
.gitignore | 1 +
README.md | 2 +-
composer.json | 13 +++++++++----
phpunit.xml.dist | 30 ++++++++++++++++++++++++++++++
4 files changed, 41 insertions(+), 5 deletions(-)
create mode 100644 phpunit.xml.dist
diff --git a/.gitignore b/.gitignore
index f09fb56..093d216 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,6 +24,7 @@ npm-debug.log
/storage/fonts
/storage/installing
/storage/installed
+/storage/json
/log
package-lock.json
diff --git a/README.md b/README.md
index 80fd7c3..8dd6de8 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ and manage customization through messages and buttons on Telegram.
![License](https://img.shields.io/github/license/lbiltech/telegram-git-notifier.svg?style=flat-square)
-[![Latest Version](https://img.shields.io/github/release/lbiltech/telegram-git-notifier.svg?style=flat-square)](https://github.com/lbiltech/telegram-git-notifier/releases)
+[![Latest Version on Packagist](https://img.shields.io/packagist/v/lbiltech/telegram-git-notifier.svg?style=flat-square)](https://packagist.org/lbiltech/telegram-git-notifier)
[![Total Downloads](https://img.shields.io/packagist/dt/lbiltech/telegram-git-notifier.svg?style=flat-square)](https://packagist.org/packages/lbiltech/telegram-git-notifier)
[![StyleCI](https://styleci.io/repos/683908657/shield)](https://styleci.io/repos/683908657)
[![Quality Score](https://img.shields.io/scrutinizer/g/lbiltech/telegram-git-notifier.svg?style=flat-square)](https://scrutinizer-ci.com/g/lbiltech/telegram-git-notifier)
diff --git a/composer.json b/composer.json
index 4da0ec3..b7526b7 100644
--- a/composer.json
+++ b/composer.json
@@ -46,18 +46,23 @@
"vlucas/phpdotenv": "^5.5"
},
"require-dev": {
- "phpstan/phpstan": "^1.10.39",
- "friendsofphp/php-cs-fixer": "^v3.37.1"
+ "friendsofphp/php-cs-fixer": "^v3.37.1",
+ "pestphp/pest": "^2.24",
+ "phpstan/phpstan": "^1.10.39"
},
"scripts": {
"analyse": "vendor/bin/phpstan",
- "format": "vendor/bin/php-cs-fixer fix --allow-risky=yes"
+ "format": "vendor/bin/php-cs-fixer fix --allow-risky=yes",
+ "test": "vendor/bin/pest"
},
"support": {
"issues": "https://github.com/lbiltech/telegram-git-notifier/issues"
},
"config": {
- "sort-packages": true
+ "sort-packages": true,
+ "allow-plugins": {
+ "pestphp/pest-plugin": true
+ }
},
"minimum-stability": "dev",
"prefer-stable": true
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
new file mode 100644
index 0000000..c426e8b
--- /dev/null
+++ b/phpunit.xml.dist
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+ tests
+
+
+
+