Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Add codecoverage to Sonar. Also add composer.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
llaumgui committed Jun 15, 2020
1 parent 9405d31 commit 8275abd
Show file tree
Hide file tree
Showing 6 changed files with 1,374 additions and 20 deletions.
32 changes: 20 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
### ApiGen ###
phpunit.xml

### ApiGen ###
gh-pages

### Couscous ###
.couscous

# Created by https://www.gitignore.io/api/composer
# Created by https://www.toptal.com/developers/gitignore/api/composer,phpunit
# Edit at https://www.toptal.com/developers/gitignore?templates=composer,phpunit

### Composer ###
composer.phar
/vendor/

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
composer.lock
# composer.lock

### PHPUnit ###
# Covers PHPUnit
# Reference: https://phpunit.de/

# Generated files
.phpunit.result.cache

# PHPUnit
/app/phpunit.xml
/phpunit.xml

# Build data
/build/

# End of https://www.toptal.com/developers/gitignore/api/composer,phpunit
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# JunitXml

[![PHP CI/CD](https://github.com/llaumgui/JunitXml/workflows/CI/CD/badge.svg?branch=master)](https://github.com/llaumgui/JunitXml/actions?query=workflow%3A"PHP+CI%2FCD") [![SensioLabsInsight](https://insight.sensiolabs.com/projects/ce42ebfd-027c-438e-bd0c-44ecf807d473/mini.png)](https://insight.sensiolabs.com/projects/ce42ebfd-027c-438e-bd0c-44ecf807d473) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?branch=master&project=llaumgui-github%3Ajunit-xml&metric=alert_status)](https://sonarcloud.io/dashboard?id=llaumgui-github%3Ajunit-xml&branch=master) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=llaumgui-github%3Ajunit-xml&metric=coverage)](https://sonarcloud.io/dashboard?id=llaumgui-github%3Ajunit-xml) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=llaumgui-github%3Ajunit-xml&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=llaumgui-github%3Ajunit-xml) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=llaumgui-github%3Ajunit-xml&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=llaumgui-github%3Ajunit-xml) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=llaumgui-github%3Ajunit-xml&metric=security_rating)](https://sonarcloud.io/dashboard?id=llaumgui-github%3Ajunit-xml)<br />
[![PHP CI/CD](https://github.com/llaumgui/JunitXml/workflows/PHP%20CI/CD/badge.svg?branch=master)](https://github.com/llaumgui/JunitXml/actions?query=workflow%3A"PHP+CI%2FCD") [![SensioLabsInsight](https://insight.sensiolabs.com/projects/ce42ebfd-027c-438e-bd0c-44ecf807d473/mini.png)](https://insight.sensiolabs.com/projects/ce42ebfd-027c-438e-bd0c-44ecf807d473)<br />
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?branch=master&project=llaumgui-github%3Ajunit-xml&metric=alert_status)](https://sonarcloud.io/dashboard?id=llaumgui-github%3Ajunit-xml&branch=master) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=llaumgui-github%3Ajunit-xml&metric=coverage)](https://sonarcloud.io/dashboard?id=llaumgui-github%3Ajunit-xml) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=llaumgui-github%3Ajunit-xml&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=llaumgui-github%3Ajunit-xml) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=llaumgui-github%3Ajunit-xml&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=llaumgui-github%3Ajunit-xml) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=llaumgui-github%3Ajunit-xml&metric=security_rating)](https://sonarcloud.io/dashboard?id=llaumgui-github%3Ajunit-xml)<br />
[![GitHub license](https://img.shields.io/github/license/llaumgui/JunitXml.svg)](https://github.com/llaumgui/JunitXml/blob/master/LICENSE) [![PHP version](https://badge.fury.io/ph/llaumgui%2Fjunit-xml.svg)](https://packagist.org/packages/llaumgui/junit-xml)<br />
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/llaumgui/JunitXml.svg)](http://isitmaintained.com/project/llaumgui/JunitXml "Average time to resolve an issue") [![Percentage of issues still open](http://isitmaintained.com/badge/open/llaumgui/JunitXml.svg)](http://isitmaintained.com/project/llaumgui/JunitXml "Percentage of issues still open")

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"squizlabs/php_codesniffer": "2.*"
},
"scripts": {
"test:phpunit": "vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-text --coverage-clover build/logs/clover.xml --coverage-html build/coverage",
"test:phpunit": "vendor/bin/phpunit --configuration phpunit.xml.dist",
"test:phpcs": "vendor/bin/phpcs",
"test": [
"@test:phpunit",
Expand Down
Loading

0 comments on commit 8275abd

Please sign in to comment.