Skip to content

Commit

Permalink
Merge pull request #4 from robiningelbrecht/robiningelbrecht-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
robiningelbrecht authored Aug 22, 2023
2 parents 962ac1d + 6ac515e commit 2540b41
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ Also make sure the `color` attribute is set to `true`:
</phpunit>
```

### Options
## Options

* Output profiling report at the end of the test run
All these options can be set at runtime as well, see <a href="#usage">usage</a>.

### Output profiling report

```xml
<extensions>
Expand All @@ -58,7 +60,7 @@ Also make sure the `color` attribute is set to `true`:
</extensions>
```

* Use compact mode to only output the testsuite results instead of all separate tests
### Enable compact mode

```xml
<extensions>
Expand All @@ -68,7 +70,7 @@ Also make sure the `color` attribute is set to `true`:
</extensions>
```

* Feel good about yourself after running your testsuite by displaying a Chuck Noris quote
### Feel good about yourself after running your testsuite by displaying a Chuck Noris quote

```xml
<extensions>
Expand All @@ -78,7 +80,9 @@ Also make sure the `color` attribute is set to `true`:
</extensions>
```

* Disable pretty print. This can be useful when you only want to prettify the output when forced via CLI (see <a href="#usage">usage</a>).
### Disable pretty print.

This can be useful when you only want to prettify the output when forced via CLI (see <a href="#usage">usage</a>).

```xml
<extensions>
Expand All @@ -98,7 +102,7 @@ Also make sure the `color` attribute is set to `true`:
<img src="readme/example-default.png" alt="Example default">
</p>

Print profiling
### Output profiling report

```bash
> vendor/bin/phpunit -d --profiling
Expand All @@ -108,7 +112,7 @@ Print profiling
<img src="readme/example-profiling.png" alt="Example profiling">
</p>

Use compact mode
### Enable compact mode

```bash
> vendor/bin/phpunit -d --compact
Expand All @@ -118,7 +122,7 @@ Use compact mode
<img src="readme/example-compact.png" alt="Example compact">
</p>

Display Chuck Norris quote
### Display Chuck Norris quote

```bash
> vendor/bin/phpunit -d --display-quote
Expand All @@ -128,14 +132,14 @@ Display Chuck Norris quote
<img src="readme/example-quote.png" alt="Example quote">
</p>

Enable/disable pretty print
### Enable/disable pretty print

```bash
> vendor/bin/phpunit -d --enable-pretty-print
> vendor/bin/phpunit -d --disable-pretty-print
```

Combine multiple options
### Combine multiple options

```bash
> vendor/bin/phpunit --configuration=tests/phpunit.test.xml -d --compact -d --display-quote
Expand Down

0 comments on commit 2540b41

Please sign in to comment.