Skip to content

Commit

Permalink
Code coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 13, 2018
1 parent 5a8e797 commit 6822bc2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor
composer.lock
.php_cs.cache
coverage
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ Good pull requests – patches, improvements, new features – are a fantastic h
```sh
composer test
```

To get code coverage information execute the following comand:

```sh
composer coverage
```

Then, open the `./coverage/index.html` file in your browser.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"phpunit",
"phpcs"
],
"cs-fix": "php-cs-fixer fix ."
"cs-fix": "php-cs-fixer fix .",
"coverage": "phpunit --coverage-html=coverage"
}
}

0 comments on commit 6822bc2

Please sign in to comment.