This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
114 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# How to contribute | ||
|
||
## Coding convention | ||
|
||
This tool follows [PSR-2 Coding standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md). | ||
## Testing | ||
|
||
### Development workflow | ||
|
||
My development workflow make use of grunt watch plugin, that will run phpunit automatically after each file save. Grunt is also used to generate the test coverage. | ||
|
||
### Unit Tests | ||
|
||
All pull request should not break existing tests. You're more than welcome to write additional tests. There is a grunt task to run the tests : | ||
|
||
grunt phpunit | ||
|
||
Without grunt, just run : | ||
|
||
phpunit tests | ||
|
||
Or you can also run tests after each file edition : | ||
|
||
grunt watch | ||
|
||
### Test coverage | ||
|
||
Use the coverage grunt task to generate code coverage. | ||
|
||
grunt coverage | ||
|
||
Without grunt, use : | ||
|
||
phpunit tests | ||
|
||
|
||
The coverage reports is in build/coverage/index.html. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters