Include PHP test coverage
This commit is contained in:
parent
99d0c272f7
commit
02c91df745
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,5 +4,6 @@
|
|||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
src/api/vendor
|
src/api/vendor
|
||||||
|
api-coverage
|
||||||
coverage.html
|
coverage.html
|
||||||
|
|
||||||
|
12
PhpUnit.xml
Normal file
12
PhpUnit.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<phpunit>
|
||||||
|
<filter>
|
||||||
|
<blacklist>
|
||||||
|
<directory>
|
||||||
|
src/api/vendor
|
||||||
|
</directory>
|
||||||
|
</blacklist>
|
||||||
|
</filter>
|
||||||
|
<logging>
|
||||||
|
<log type="coverage-html" target="api-coverage/" />
|
||||||
|
</logging>
|
||||||
|
</phpunit>
|
@ -147,7 +147,8 @@ gulp.task('coverage', ['tsc', 'vendor'], () => {
|
|||||||
|
|
||||||
gulp.task('test-api', () => {
|
gulp.task('test-api', () => {
|
||||||
return gulp.src('')
|
return gulp.src('')
|
||||||
.pipe(phpunit('./src/api/vendor/phpunit/phpunit/phpunit test/api/'));
|
.pipe(phpunit('./src/api/vendor/phpunit/phpunit/phpunit ' +
|
||||||
|
'--configuration PhpUnit.xml test/api/'));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('watch', () => {
|
gulp.task('watch', () => {
|
||||||
|
Reference in New Issue
Block a user