Skip to content

Commit

Permalink
Update master to output generated at 78cb233
Browse files Browse the repository at this point in the history
  • Loading branch information
abenevaut committed Jul 14, 2022
1 parent c9a1ea8 commit 402d435
Show file tree
Hide file tree
Showing 5 changed files with 292 additions and 272 deletions.
30 changes: 18 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,36 @@ Tool to slice PHPUnit tests files to tests suites.

## Install

### Install in project

```
### In PHP project
```shell
composer require --dev abenevaut/phpunit-slicer
```

### Install globally
```
composer global require abenevaut/phpunit-slicer
```

## Usage

```
#### Usage
```shell
vendor/bin/phpunit-slicer slice 4 ./phpunit.xml.dist ./phpunit.xml ./tests
```

### Globally
```shell
composer global require abenevaut/phpunit-slicer
```

#### Usage
```shell
phpunit-slicer slice 4 ./phpunit.xml.dist ./phpunit.xml ./tests
```

```
### Use cases
```shell
vendor/bin/phpunit --testsuite sliced-testsuite-0 --configuration phpunit.xml
vendor/bin/pest --testsuite sliced-testsuite-1 --configuration phpunit.xml
php artisan test --testsuite sliced-testsuite-2 --configuration phpunit.xml
php laravel-zero-project test --testsuite sliced-testsuite-3 --configuration phpunit.xml
```

## Build
```shell
php phpunit-slicer app:build phpunit-slicer
php phpunit-slicer app:build phpunit-slicer --build-version=0.0.X
```
36 changes: 18 additions & 18 deletions box.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"chmod": "0755",
"directories": [
"app",
"bootstrap",
"config",
"lang",
"vendor"
],
"exclude-dev-files": false,
"files": [
"composer.json"
],
"exclude-composer-files": false,
"compression": "GZ",
"compactors": [
"KevinGH\\Box\\Compactor\\Php",
"KevinGH\\Box\\Compactor\\Json"
]
"chmod": "0755",
"directories": [
"app",
"bootstrap",
"config",
"lang",
"vendor"
],
"exclude-dev-files": false,
"files": [
"composer.json"
],
"exclude-composer-files": false,
"compression": "GZ",
"compactors": [
"KevinGH\\Box\\Compactor\\Php",
"KevinGH\\Box\\Compactor\\Json"
]
}
Binary file modified builds/phpunit-slicer
Binary file not shown.
Loading

0 comments on commit 402d435

Please sign in to comment.