Implement code coverage and badges
This commit is contained in:
parent
76db32a24e
commit
69eed6681a
5 changed files with 22 additions and 1 deletions
3
.gitattributes
vendored
3
.gitattributes
vendored
|
@ -1,3 +1,4 @@
|
|||
phpunit.xml export-ignore
|
||||
tests/ export-ignore
|
||||
CHANGELOG.md export-ignore
|
||||
CHANGELOG.md export-ignore
|
||||
package.json export-ignore
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,7 @@
|
|||
/.idea
|
||||
/vendor
|
||||
/node_modules
|
||||
/coverage
|
||||
composer.lock
|
||||
package-lock.json
|
||||
.phpunit.result.cache
|
|
@ -1,5 +1,14 @@
|
|||
# Loom Utilities | Collection
|
||||
|
||||
<div>
|
||||
<!-- Version Badge -->
|
||||
<img src="https://img.shields.io/badge/Version-1.0.1-blue" alt="Version 1.0.1">
|
||||
<!-- PHP Coverage Badge -->
|
||||
<img src="https://img.shields.io/badge/PHP Coverage-88.24%25-yellow" alt="PHP Coverage 88.24%">
|
||||
<!-- License Badge -->
|
||||
<img src="https://img.shields.io/badge/License-MIT-34ad9b" alt="License MIT">
|
||||
</div>
|
||||
|
||||
A Collection library for an object-oriented way to work with arrays.
|
||||
|
||||
## Installation
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
"Loom\\Utility\\Collection\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"test": "php -d xdebug.mode=coverage ./vendor/bin/phpunit --testdox --colors=always --coverage-html coverage --coverage-clover coverage/coverage.xml --testdox-html coverage/testdox.html && npx badger --phpunit ./coverage/coverage.xml && npx badger --version ./composer.json && npx badger --license ./composer.json"
|
||||
},
|
||||
"version": "1.0.1",
|
||||
"license": "MIT",
|
||||
"require-dev": {
|
||||
|
|
5
package.json
Normal file
5
package.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"devDependencies": {
|
||||
"@dannyxcii/badger": "^0.5.0"
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue