Skip to content

Commit a9ec921

Browse files
authored
Merge pull request #1196 from felipebz/fix-links
Fix links to SonarCloud projects and SonarQube documentation
2 parents afbcdb8 + 311d5a7 commit a9ec921

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The framework follows industry standards and best patterns of modern Unit Testin
3131

3232
Have a look at our [demo project](https://github.com/utPLSQL/utPLSQL-demo-project/).
3333

34-
It uses [Travis CI](https://travis-ci.org/utPLSQL/utPLSQL-demo-project) to build on every commit, runs all tests, publishes test results and code coverage to [SonarQube](https://sonarqube.com/dashboard?id=utPLSQL%3AutPLSQL-demo-project%3Adevelop).
34+
It uses [Travis CI](https://travis-ci.org/utPLSQL/utPLSQL-demo-project) to build on every commit, runs all tests, publishes test results and code coverage to [SonarCloud](https://sonarcloud.io/project/overview?id=utPLSQL:utPLSQL-demo-project).
3535

3636
# Three steps
3737

docs/userguide/coverage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To obtain information about code coverage for unit tests, run utPLSQL with one o
1717
The following code coverage reporters are supplied with utPLSQL:
1818
* `ut_coverage_html_reporter` - generates a HTML coverage report providing summary and detailed information on code coverage. The HTML reporter is based on the open-source [simplecov-html](https://github.com/colszowka/simplecov-html) reporter for Ruby. It includes source code of the code that was covered (if possible)
1919
* `ut_coveralls_reporter` - generates a [Coveralls compatible JSON](https://coveralls.zendesk.com/hc/en-us/articles/201774865-API-Introduction) coverage report providing detailed information on code coverage with line numbers. This coverage report is designed to be consumed by cloud services like [Coveralls](https://coveralls.io)
20-
* `ut_coverage_sonar_reporter` - generates a [Sonar Compatible XML](https://docs.sonarqube.org/display/SONAR/Generic+Test+Data) coverage report providing detailed information on code coverage with line numbers. This coverage report is designed to be consumed by services like [SonarQube/SonarCloud](https://about.sonarcloud.io/)
20+
* `ut_coverage_sonar_reporter` - generates a [Sonar Compatible XML](https://docs.sonarqube.org/latest/analysis/generic-test/) coverage report providing detailed information on code coverage with line numbers. This coverage report is designed to be consumed by services like [SonarQube](https://www.sonarqube.org/) and [SonarCloud](https://about.sonarcloud.io/)
2121
* `ut_coverage_cobertura_reporter` - generates a basic Cobertura coverage (http://cobertura.sourceforge.net/xml/coverage-04.dtd) report providing detailed information on code coverage with line numbers. This coverage report is designed to be consumed by services like TFS and Jenkins. Check this link for an example of XML generated by Java: https://raw.githubusercontent.com/jenkinsci/cobertura-plugin/master/src/test/resources/hudson/plugins/cobertura/coverage-with-data.xml
2222

2323
## Security model

docs/userguide/reporters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Example of failure report details
8484

8585

8686
# Sonar test reporter
87-
If you are using [SonarQube](https://about.sonarqube.com/) to do static code analysis for you PLSQL projects, your code analysis can benefit from code coverage and test results.
87+
If you are using [SonarQube](https://www.sonarqube.org/) or [SonarCloud](https://about.sonarcloud.io/) to do static code analysis for you PLSQL projects, your code analysis can benefit from code coverage and test results.
8888
utPLSQL provides two reporters to for SonarQube:
8989
- `ut_sonar_test_reporter` - provides an XML output of each test executed per each project test file (package)
9090
- `ut_coverage_sonar_reporter` - provides XML output of code coverage per each project source file

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[![twitter](https://img.shields.io/twitter/follow/utPLSQL.svg?style=social&label=Follow)](https://twitter.com/utPLSQL)
1010

1111
[![build](https://github.com/utPLSQL/utPLSQL/actions/workflows/build.yml/badge.svg)](https://github.com/utPLSQL/utPLSQL/actions/workflows/build.yml)
12-
[![QualityGate](https://sonarcloud.io/api/project_badges/measure?project=utPLSQL&metric=sqale_rating)](https://sonarcloud.io/dashboard/index?id=utPLSQL)
12+
[![QualityGate](https://sonarcloud.io/api/project_badges/measure?project=utPLSQL&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=utPLSQL)
1313
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=utPLSQL&metric=coverage)](https://sonarcloud.io/summary/new_code?id=utPLSQL)
1414

1515
----------

source/reporters/ut_coverage_sonar_reporter.tpb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ create or replace type body ut_coverage_sonar_reporter is
9696

9797
overriding member function get_description return varchar2 as
9898
begin
99-
return 'Generates a JSON coverage report providing information on code coverage with line numbers.' || chr(10) ||
100-
'Designed for [SonarQube](https://about.sonarqube.com/) to report coverage.' || chr(10) ||
101-
'JSON format returned conforms with the Sonar specification: https://docs.sonarqube.org/display/SONAR/Generic+Test+Data';
99+
return 'Generates a XML coverage report providing information on code coverage with line numbers.' || chr(10) ||
100+
'Designed for [SonarQube](https://www.sonarqube.org/) to report coverage.' || chr(10) ||
101+
'XML format returned conforms with the Sonar specification: https://docs.sonarqube.org/latest/analysis/generic-test/';
102102
end;
103103

104104
end;

source/reporters/ut_coverage_sonar_reporter.tps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ create or replace type ut_coverage_sonar_reporter under ut_coverage_reporter_bas
1818

1919
/**
2020
* Builds a coverage XML report that follows rules described in
21-
* https://docs.sonarqube.org/display/SONAR/Generic+Test+Data
21+
* https://docs.sonarqube.org/latest/analysis/generic-test/
2222
*/
2323
constructor function ut_coverage_sonar_reporter(
2424
self in out nocopy ut_coverage_sonar_reporter

source/reporters/ut_coveralls_reporter.tps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ create or replace type ut_coveralls_reporter under ut_coverage_reporter_base(
1818

1919
/**
2020
* Builds a coverage XML report that follows rules described in
21-
* https://docs.sonarqube.org/display/SONAR/Generic+Test+Data
21+
* https://docs.coveralls.io/api-introduction
2222
*/
2323
constructor function ut_coveralls_reporter(
2424
self in out nocopy ut_coveralls_reporter

source/reporters/ut_sonar_test_reporter.tpb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ create or replace type body ut_sonar_test_reporter is
106106

107107
overriding member function get_description return varchar2 as
108108
begin
109-
return 'Generates a JSON report providing detailed information on test execution.' || chr(10) ||
110-
'Designed for [SonarQube](https://about.sonarqube.com/) to report test execution.' || chr(10) ||
111-
'JSON format returned conforms with the Sonar specification: https://docs.sonarqube.org/display/SONAR/Generic+Test+Data';
109+
return 'Generates a XML report providing detailed information on test execution.' || chr(10) ||
110+
'Designed for [SonarQube](https://www.sonarqube.org/) to report test execution.' || chr(10) ||
111+
'XML format returned conforms with the Sonar specification: https://docs.sonarqube.org/latest/analysis/generic-test/';
112112
end;
113113

114114
end;

0 commit comments

Comments
 (0)