Skip to content

Commit 52d4368

Browse files
committed
Added documentation
1 parent feff4a3 commit 52d4368

File tree

1 file changed

+65
-10
lines changed

1 file changed

+65
-10
lines changed

README.md

Lines changed: 65 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The charset-part of LC_ALL is ignored.
4242
Currently, utPLSQL-cli knows the following commands:
4343
- run
4444
- info
45+
- reporters
4546

4647
### run
4748
`utplsql run <ConnectionURL> [<options>]`
@@ -68,7 +69,7 @@ Currently, utPLSQL-cli knows the following commands:
6869
6970
-f=format - A reporter to be used for reporting.
7071
If no -f option is provided, the default ut_documentation_reporter is used.
71-
See reporters list for possible values
72+
See reporters command for possible values
7273
-o=output - Defines file name to save the output from the specified reporter.
7374
If defined, the output is not displayed on screen by default. This can be changed with the -s parameter.
7475
If not defined, then output will be displayed on screen, even if the parameter -s is not specified.
@@ -115,7 +116,7 @@ Sonar and Coveralls reporter will only provide valid reports, when source_path a
115116
#### Examples
116117

117118
```
118-
utplsql run hr/hr@xe -p=hr_test -f=ut_documentation_reporter -o=run.log -s -f=ut_coverage_html_reporter -o=coverage.html -source_path=source
119+
> utplsql run hr/hr@xe -p=hr_test -f=ut_documentation_reporter -o=run.log -s -f=ut_coverage_html_reporter -o=coverage.html -source_path=source
119120
```
120121

121122
Invokes all Unit tests from schema/package "hr_test" with two reporters:
@@ -124,7 +125,7 @@ Invokes all Unit tests from schema/package "hr_test" with two reporters:
124125
* ut_coverage_html_reporter - will report only on database objects that are mapping to file structure from "source" folder and save output to file "coverage.html"
125126

126127
```
127-
utplsql run hr/hr@xe
128+
> utplsql run hr/hr@xe
128129
```
129130

130131
Invokes all unit test suites from schema "hr". Results are displayed to screen using default ut_documentation_reporter.
@@ -145,19 +146,73 @@ Invokes all unit test suites from schema "hr". Results are displayed to screen u
145146
#### Examples
146147

147148
```
148-
utplsql info
149+
> utplsql info
149150
150-
> cli 3.1.1-SNAPSHOT.local
151-
> utPLSQL-java-api 3.1.1-SNAPSHOT.123
151+
cli 3.1.1-SNAPSHOT.local
152+
utPLSQL-java-api 3.1.1-SNAPSHOT.123
152153
```
153154
```
154-
utplsql info app/app@localhost:1521/ORCLPDB1
155+
> utplsql info app/app@localhost:1521/ORCLPDB1
155156
156-
> cli 3.1.1-SNAPSHOT.local
157-
> utPLSQL-java-api 3.1.1-SNAPSHOT.123
158-
> utPLSQL 3.1.2.1913
157+
cli 3.1.1-SNAPSHOT.local
158+
utPLSQL-java-api 3.1.1-SNAPSHOT.123
159+
utPLSQL 3.1.2.1913
159160
```
160161

162+
### reporters
163+
`utplsql info <ConnectionURL>`
164+
165+
```
166+
<ConnectionURL> - accepted formats:
167+
<user>/<password>@//<host>[:<port>]/<service>
168+
<user>/<password>@<host>:<port>:<SID>
169+
<user>/<password>@<TNSName>
170+
To connect using TNS, you need to have the ORACLE_HOME environment variable set.
171+
The file tnsnames.ora must exist in path %ORACLE_HOME%/network/admin
172+
The file tnsnames.ora must contain valid TNS entries.
173+
```
174+
175+
#### Examples
176+
```
177+
> utplsql reporters app/app@localhost:1521/ORCLPDB1
178+
179+
UT_COVERAGE_COBERTURA_REPORTER (SQL): Generates a Cobertura coverage report providing information on code coverage with line numbers.
180+
Designed for Jenkins and TFS to report coverage.
181+
Cobertura Document Type Definition can be found: http://cobertura.sourceforge.net/xml/coverage-04.dtd.
182+
Sample file: https://github.com/leobalter/testing-examples/blob/master/solutions/3/report/cobertura-coverage.xml.
183+
184+
UT_COVERAGE_HTML_REPORTER (SQL_WITH_JAVA): Generates a HTML coverage report with summary and line by line information on code coverage.
185+
Based on open-source simplecov-html coverage reporter for Ruby.
186+
Includes source code in the report.
187+
Will copy all necessary assets to a folder named after the Output-File
188+
189+
UT_COVERAGE_SONAR_REPORTER (SQL): Generates a JSON coverage report providing information on code coverage with line numbers.
190+
Designed for [SonarQube](https://about.sonarqube.com/) to report coverage.
191+
JSON format returned conforms with the Sonar specification: https://docs.sonarqube.org/display/SONAR/Generic+Test+Data
192+
193+
UT_COVERALLS_REPORTER (SQL): Generates a JSON coverage report providing information on code coverage with line numbers.
194+
Designed for [Coveralls](https://coveralls.io/).
195+
JSON format conforms with specification: https://docs.coveralls.io/api-introduction
196+
197+
UT_DOCUMENTATION_REPORTER (SQL_WITH_JAVA): A textual pretty-print of unit test results (usually use for console output)
198+
Provides additional properties lvl and failed
199+
200+
UT_JUNIT_REPORTER (SQL): Provides outcomes in a format conforming with JUnit 4 and above as defined in: https://gist.github.com/kuzuha/232902acab1344d6b578
201+
202+
UT_SONAR_TEST_REPORTER (SQL): Generates a JSON report providing detailed information on test execution.
203+
Designed for [SonarQube](https://about.sonarqube.com/) to report test execution.
204+
JSON format returned conforms with the Sonar specification: https://docs.sonarqube.org/display/SONAR/Generic+Test+Data
205+
206+
UT_TEAMCITY_REPORTER (SQL): Provides the TeamCity (a CI server by jetbrains) reporting-format that allows tracking of progress of a CI step/task as it executes.
207+
https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity
208+
209+
UT_TFS_JUNIT_REPORTER (SQL): Provides outcomes in a format conforming with JUnit version for TFS / VSTS.
210+
As defined by specs :https://docs.microsoft.com/en-us/vsts/build-release/tasks/test/publish-test-results?view=vsts
211+
Version is based on windy road junit https://github.com/windyroad/JUnit-Schema/blob/master/JUnit.xsd.
212+
213+
UT_XUNIT_REPORTER (SQL): Depracated reporter. Please use Junit.
214+
Provides outcomes in a format conforming with JUnit 4 and above as defined in: https://gist.github.com/kuzuha/232902acab1344d6b578
215+
```
161216

162217
## Enabling Color Outputs on Windows
163218

0 commit comments

Comments
 (0)