Skip to content

Commit

Permalink
Issue #38: Add test coverage configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
ademarco committed Oct 5, 2017
1 parent e1a5e55 commit e9df0c4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/vendor/
/report/
grumphp.yml
phpunit.xml
composer.lock
.idea
.idea
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,19 @@ The Poetry Client Library aims to hide Poetry service complexity behind and easy
users don't have to worry about building their own request messages nor implementing SOAP interactions.

For more information check the documentation [here](docs/00-overview.md).

## Tests

Run test by running:

```
$ ./vendor/bin/grumphp run
$ ./vendor/bin/phpspec run
$ ./vendor/bin/phpunit
```

To produce test coverage report run:

```
$ ./vendor/bin/phpunit --coverage-html ./report
```
5 changes: 5 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit e9df0c4

Please sign in to comment.