Skip to content

Commit d402718

Browse files
committed
Switch table-like to 4-space intendation
1 parent 93c8e5d commit d402718

File tree

2 files changed

+52
-52
lines changed

2 files changed

+52
-52
lines changed

README.md

Lines changed: 46 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -162,42 +162,52 @@ utPLSQL 3.1.2.1913
162162
```
163163
> utplsql reporters app/app@localhost:1521/ORCLPDB1
164164
165-
UT_COVERAGE_COBERTURA_REPORTER Generates a Cobertura coverage report providing information on code coverage with line numbers.
166-
Designed for Jenkins and TFS to report coverage.
167-
Cobertura Document Type Definition can be found: http://cobertura.sourceforge.net/xml/coverage-04.dtd.
168-
Sample file: https://github.com/leobalter/testing-examples/blob/master/solutions/3/report/cobertura-coverage.xml.
169-
170-
UT_COVERAGE_HTML_REPORTER Generates a HTML coverage report with summary and line by line information on code coverage.
171-
Based on open-source simplecov-html coverage reporter for Ruby.
172-
Includes source code in the report.
173-
Will copy all necessary assets to a folder named after the Output-File
174-
175-
UT_COVERAGE_SONAR_REPORTER Generates a JSON coverage report providing information on code coverage with line numbers.
176-
Designed for [SonarQube](https://about.sonarqube.com/) to report coverage.
177-
JSON format returned conforms with the Sonar specification: https://docs.sonarqube.org/display/SONAR/Generic+Test+Data
178-
179-
UT_COVERALLS_REPORTER Generates a JSON coverage report providing information on code coverage with line numbers.
180-
Designed for [Coveralls](https://coveralls.io/).
181-
JSON format conforms with specification: https://docs.coveralls.io/api-introduction
182-
183-
UT_DOCUMENTATION_REPORTER A textual pretty-print of unit test results (usually use for console output)
184-
Provides additional properties lvl and failed
185-
186-
UT_JUNIT_REPORTER Provides outcomes in a format conforming with JUnit 4 and above as defined in: https://gist.github.com/kuzuha/232902acab1344d6b578
187-
188-
UT_SONAR_TEST_REPORTER Generates a JSON report providing detailed information on test execution.
189-
Designed for [SonarQube](https://about.sonarqube.com/) to report test execution.
190-
JSON format returned conforms with the Sonar specification: https://docs.sonarqube.org/display/SONAR/Generic+Test+Data
191-
192-
UT_TEAMCITY_REPORTER Provides the TeamCity (a CI server by jetbrains) reporting-format that allows tracking of progress of a CI step/task as it executes.
193-
https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity
194-
195-
UT_TFS_JUNIT_REPORTER Provides outcomes in a format conforming with JUnit version for TFS / VSTS.
196-
As defined by specs :https://docs.microsoft.com/en-us/vsts/build-release/tasks/test/publish-test-results?view=vsts
197-
Version is based on windy road junit https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd.
198-
199-
UT_XUNIT_REPORTER Depracated reporter. Please use Junit.
200-
Provides outcomes in a format conforming with JUnit 4 and above as defined in: https://gist.github.com/kuzuha/232902acab1344d6b578
165+
UT_COVERAGE_COBERTURA_REPORTER:
166+
Generates a Cobertura coverage report providing information on code coverage with line numbers.
167+
Designed for Jenkins and TFS to report coverage.
168+
Cobertura Document Type Definition can be found: http://cobertura.sourceforge.net/xml/coverage-04.dtd.
169+
Sample file: https://github.com/leobalter/testing-examples/blob/master/solutions/3/report/cobertura-coverage.xml.
170+
171+
UT_COVERAGE_HTML_REPORTER:
172+
Generates a HTML coverage report with summary and line by line information on code coverage.
173+
Based on open-source simplecov-html coverage reporter for Ruby.
174+
Includes source code in the report.
175+
Will copy all necessary assets to a folder named after the Output-File
176+
177+
UT_COVERAGE_SONAR_REPORTER:
178+
Generates a JSON coverage report providing information on code coverage with line numbers.
179+
Designed for [SonarQube](https://about.sonarqube.com/) to report coverage.
180+
JSON format returned conforms with the Sonar specification: https://docs.sonarqube.org/display/SONAR/Generic+Test+Data
181+
182+
UT_COVERALLS_REPORTER:
183+
Generates a JSON coverage report providing information on code coverage with line numbers.
184+
Designed for [Coveralls](https://coveralls.io/).
185+
JSON format conforms with specification: https://docs.coveralls.io/api-introduction
186+
187+
UT_DOCUMENTATION_REPORTER:
188+
A textual pretty-print of unit test results (usually use for console output)
189+
Provides additional properties lvl and failed
190+
191+
UT_JUNIT_REPORTER:
192+
Provides outcomes in a format conforming with JUnit 4 and above as defined in: https://gist.github.com/kuzuha/232902acab1344d6b578
193+
194+
UT_SONAR_TEST_REPORTER:
195+
Generates a JSON report providing detailed information on test execution.
196+
Designed for [SonarQube](https://about.sonarqube.com/) to report test execution.
197+
JSON format returned conforms with the Sonar specification: https://docs.sonarqube.org/display/SONAR/Generic+Test+Data
198+
199+
UT_TEAMCITY_REPORTER:
200+
Provides the TeamCity (a CI server by jetbrains) reporting-format that allows tracking of progress of a CI step/task as it executes.
201+
https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity
202+
203+
UT_TFS_JUNIT_REPORTER:
204+
Provides outcomes in a format conforming with JUnit version for TFS / VSTS.
205+
As defined by specs :https://docs.microsoft.com/en-us/vsts/build-release/tasks/test/publish-test-results?view=vsts
206+
Version is based on windy road junit https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd.
207+
208+
UT_XUNIT_REPORTER:
209+
Depracated reporter. Please use Junit.
210+
Provides outcomes in a format conforming with JUnit 4 and above as defined in: https://gist.github.com/kuzuha/232902acab1344d6b578
201211
```
202212

203213
## Enabling Color Outputs on Windows

src/main/java/org/utplsql/cli/ReportersCommand.java

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ private int getMaxNameLength(List<ReporterInfo> reporterInfos) {
5959
}
6060

6161
private void writeReporters(List<ReporterInfo> reporterInfos, PrintStream out) {
62-
int padding = getMaxNameLength(reporterInfos)+1;
62+
//int padding = getMaxNameLength(reporterInfos)+1;
6363
reporterInfos.stream()
6464
.sorted(Comparator.comparing(ReporterInfo::getName))
65-
.forEach(info -> writeReporter(info, padding, out));
65+
.forEach(info -> writeReporter(info, 4, out));
6666
}
6767

6868
private void writeReporter(ReporterInfo info, int padding, PrintStream out) {
@@ -74,23 +74,13 @@ private void writeReporter(ReporterInfo info, int padding, PrintStream out) {
7474
}
7575

7676
private void writeReporterName( ReporterInfo info, int paddingRight, PrintStream out ) {
77-
out.print(String.format("%1$-" + paddingRight + "s", info.getName()));
77+
out.println(info.getName()+":");
78+
7879
}
7980

8081
private void writeReporterDescription( ReporterInfo info, int paddingLeft, PrintStream out ) {
8182
String[] lines = info.getDescription().split("\n");
82-
83-
boolean firstLine = true;
84-
for ( String line : lines ) {
85-
86-
line = line.trim();
87-
88-
if ( !firstLine )
89-
out.print(String.format("%1$" + paddingLeft + "s", ""));
90-
91-
out.println(line);
92-
firstLine = false;
93-
}
94-
83+
String paddingLeftStr = String.format("%1$"+paddingLeft+"s", "");
84+
Arrays.stream(lines).forEach(line -> out.println(paddingLeftStr+line.trim()));
9585
}
9686
}

0 commit comments

Comments
 (0)