mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-17 11:24:33 +00:00
87fc9b3796
* Run ci static analysis checks using scripts * Clean up * Move phpunit run to dedicated script * Use run.sh and remove ci.sh * Rename test scripts to be prefixed with "run_" * Move static analysis runs to test script * Clean up
34 lines
812 B
Markdown
34 lines
812 B
Markdown
# Testing
|
|
|
|
### Run Tests Locally
|
|
|
|
To run tests:
|
|
|
|
```bash
|
|
git clone https://github.com/php-curl-class/php-curl-class.git
|
|
cd php-curl-class/
|
|
composer update
|
|
./tests/run.sh
|
|
```
|
|
|
|
To run select tests:
|
|
|
|
```bash
|
|
git clone https://github.com/php-curl-class/php-curl-class.git
|
|
cd php-curl-class/
|
|
composer update
|
|
./tests/run.sh --filter=keyword
|
|
```
|
|
|
|
To test all PHP versions in containers:
|
|
|
|
```bash
|
|
git clone https://github.com/php-curl-class/php-curl-class.git
|
|
cd php-curl-class/
|
|
./tests/test_all.sh
|
|
```
|
|
|
|
### Continuous Integration Tests
|
|
|
|
Continuous integration runs [tests/run.sh](https://github.com/php-curl-class/php-curl-class/blob/master/tests/run.sh) on supported PHP versions and is configured with [.github/workflows/ci.yml](https://github.com/php-curl-class/php-curl-class/blob/master/.github/workflows/ci.yml).
|