Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Aug 4, 2019
1 parent 5359cad commit f0bff43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ configuration file check [Configuration section](#configuration).

## Usage

If you execute `bin/behat` command, you will see code coverage generated in
If you execute `vendor/bin/behat` command, you will see code coverage generated in
`target` (i.e. `build/behat-coverage`) directory (in `html` format):

$ bin/behat
$ vendor/bin/behat

### Running with phpdbg

This extension now supports [phpdbg][6], which results in faster execution when
using more recent versions of PHP. Run `phpspec` via [phpdbg][6]:
using more recent versions of PHP. Run `behat` via [phpdbg][6]:

$ phpdbg -qrr bin/behat run
$ phpdbg -qrr vendor/bin/behat

## Configuration

Expand Down
7 changes: 7 additions & 0 deletions src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<parameter key="report">%behat.code_coverage.config.report%</parameter>
</parameter>

<parameter key="dvdoug.code_coverage.driver.phpdbg.class">SebastianBergmann\CodeCoverage\Driver\PHPDBG</parameter>
<parameter key="dvdoug.code_coverage.driver.xdebug.class">SebastianBergmann\CodeCoverage\Driver\Xdebug</parameter>
<parameter key="dvdoug.code_coverage.driver.factory.class">DVDoug\Behat\CodeCoverage\Common\Driver\Factory</parameter>
</parameters>
Expand All @@ -35,6 +36,12 @@
<tag name="cli.controller" priority="80000" />
</service>

<service id="dvdoug.code_coverage.driver.phpdbg"
class="%dvdoug.code_coverage.driver.phpdbg.class%"
synthetic="true">
<tag name="dvdoug.code_coverage.driver"/>
</service>

<service id="dvdoug.code_coverage.driver.xdebug"
class="%dvdoug.code_coverage.driver.xdebug.class%"
synthetic="true">
Expand Down

0 comments on commit f0bff43

Please sign in to comment.