Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solital/phpunit-bridge
PHPUnit bridge for Solital Framework
https://github.com/solital/phpunit-bridge
Last synced: 2 months ago
JSON representation
PHPUnit bridge for Solital Framework
- Host: GitHub
- URL: https://github.com/solital/phpunit-bridge
- Owner: solital
- Created: 2024-09-05T11:32:46.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-10-24T12:28:09.000Z (3 months ago)
- Last Synced: 2024-10-25T13:05:33.852Z (3 months ago)
- Language: PHP
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHPUnit bridge for Solital Framework
This package was created using the [robiningelbrecht/phpunit-pretty-print](https://packagist.org/packages/robiningelbrecht/phpunit-pretty-print) component.
## Installation
```bash
composer require solital/phpunit-bridge --dev
```## Configuration
Navigate to your `phpunit.xml` file and add following config to set default options
(you can also set these options at run time):```xml
```
Also make sure the `color` attribute is set to `true`:
```xml
```
## Options
All these options can be set at runtime as well, see usage.
### Output profiling report
```xml
```
### Enable compact mode
```xml
```
### Feel good about yourself after running your testsuite by displaying a Chuck Noris quote
```xml
```
### Disable pretty print.
This can be useful when you only want to prettify the output when forced via CLI (see usage).
```xml
```
## Usage
```bash
> vendor/bin/phpunit
```### Output profiling report
```bash
> vendor/bin/phpunit -d --profiling
```### Enable compact mode
```bash
> vendor/bin/phpunit -d --compact
```### Display Chuck Norris quote
```bash
> vendor/bin/phpunit -d --display-quote
```### Enable/disable pretty print
```bash
> vendor/bin/phpunit -d --enable-pretty-print
> vendor/bin/phpunit -d --disable-pretty-print
```### Combine multiple options
```bash
> vendor/bin/phpunit --configuration=tests/phpunit.test.xml -d --compact -d --display-quote
```## PHPUnit 9.x
This package does not support PHPUnit 9.x
# License
MIT