Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdf8d56

Browse files
committed
Updated documentation
1 parent f86155c commit cdf8d56

2 files changed

Lines changed: 30 additions & 25 deletions

File tree

client_source/sqlplus/ut_run.sql

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
Current limit of script parameters is 39
2323
2424
Scrip invocation:
25-
ut_run.sql user/password@database [-p=(ut_path|ut_paths)] [-c] [-f=format [-o=output] [-s] ...]
25+
ut_run.sql "client_Path" "project_path" user/password@database [-p=(ut_path|ut_paths)] [-c] [-f=format [-o=output] [-s] ...] [-source_path=path] [-test_path=path]
2626
2727
Parameters:
28+
client_path - The path where this script is installed. Will be used to find auxiliary scripts and to save temp files.
29+
project_path - The path from where this script is being called.
2830
user - username to connect as
2931
password - password of the user
3032
database - database to connect to
@@ -53,10 +55,10 @@ Parameters:
5355
This coverage report is designed to be consumed by cloud services like https://coveralls.io/.
5456
-f=ut_coverage_sonar_reporter
5557
Generates a JSON coverage report providing detailed information on code coverage with line numbers.
56-
This coverage report is designed to be consumed by local services like https://about.sonarqube.com/.
58+
This report is designed to be consumed by SonarQube to report code coverage.
5759
-f=ut_sonar_test_reporter
5860
Generates a JSON report providing detailed information on test specifications.
59-
This report is designed to be consumed by local services like https://about.sonarqube.com/.
61+
This report is designed to be consumed by SonarQube to report test files.
6062
If no -f option is provided, the ut_documentation_reporter will be used.
6163
6264
-o=output - file name to save the output provided by the reporter.
@@ -68,18 +70,21 @@ Parameters:
6870
-test_path=path - Test files path to be used by coverage reporters.
6971
-c - If specified, enables printing of test results in colors as defined by ANSICONSOLE standards
7072
73+
To make coverage reporters work source_path and/or test_path cannot be empty, and ut_run need to be executed from your project's path.
74+
7175
Parameters -f, -o, -s are correlated. That is parameters -o and -s are defining outputs for -f.
76+
7277
Examples of invocation using sqlplus from command line:
7378
74-
sqlplus /nolog @ut_run hr/hr@xe -p=hr_test -f=ut_documentation_reporter -o=run.log -s -f=ut_teamcity_reporter -o=teamcity.xml
79+
sqlplus /nolog @ut_run ~/ut_run_path ~/project/source 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
7580
76-
All Unit tests from schema "hr_test" will be be invoked with two reporters:
77-
- ut_documentation_reporter - will output to screen and save it's output to file "run.log"
78-
- ut_teamcity_reporter - will save it's output to file "teamcity.xml"
81+
All Unit tests from schema/package "hr_test" will be be invoked with two reporters:
82+
- ut_documentation_reporter - will output to screen and save it's output to file "run.log"
83+
- ut_coverage_html_reporter - will read file structure from source folder, and save it's output to file "coverage.html"
7984
8085
sqlplus /nolog @ut_run hr/hr@xe
8186
82-
All Unit tests from schema "hr" will be be invoked with ut_documentation_reporter as a format and the results will be printed to screen
87+
All Unit tests from schema "hr" will be be invoked with ut_documentation_reporter as a format and the results will be printed to screen.
8388
8489
*/
8590

docs/userguide/ut_run-script.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,31 @@ You need to run the `ut_run.bat` or `ut_run` script from your project's root dir
2525
-f=format - A reporter to be used for reporting.
2626
Available options:
2727
-f=ut_documentation_reporter
28-
A textual pretty-print of unit test results (usually use for console output)
28+
A textual pretty-print of unit test results (usually use for console output)
2929
-f=ut_teamcity_reporter
30-
A teamcity Unit Test reporter, that can be used to visualize progress of test execution as the job progresses.
30+
A teamcity Unit Test reporter, that can be used to visualize progress of test execution as the job progresses.
3131
-f=ut_xunit_reporter
32-
A XUnit xml format (as defined at: http://stackoverflow.com/a/9691131 and at https://gist.github.com/kuzuha/232902acab1344d6b578)
33-
Usually used by Continuous Integration servers like Jenkins/Hudson or Teamcity to display test results.
32+
A XUnit xml format (as defined at: http://stackoverflow.com/a/9691131 and at https://gist.github.com/kuzuha/232902acab1344d6b578)
33+
Usually used by Continuous Integration servers like Jenkins/Hudson or Teamcity to display test results.
3434
-f=ut_coverage_html_reporter
35-
Generates a HTML coverage report providing summary and detailed information on code coverage.
35+
Generates a HTML coverage report providing summary and detailed information on code coverage.
3636
The html reporter is based on open-source simplecov-html reporter for Ruby.
37-
It includes source code of the code that was covered (if possible).
37+
It includes source code of the code that was covered (if possible).
3838
-f=ut_coveralls_reporter
39-
Generates a JSON coverage report providing detailed information on code coverage with line numbers.
40-
This coverage report is designed to be consumed by cloud services like https://coveralls.io/.
39+
Generates a JSON coverage report providing detailed information on code coverage with line numbers.
40+
This coverage report is designed to be consumed by cloud services like [Coveralls](https://coveralls.io/).
4141
-f=ut_coverage_sonar_reporter
42-
Generates a JSON coverage report providing detailed information on code coverage with line numbers.
43-
This coverage report is designed to be consumed by local services like https://about.sonarqube.com/.
42+
Generates a JSON coverage report providing detailed information on code coverage with line numbers.
43+
This report is designed to be consumed by [SonarQube](https://about.sonarqube.com/) to report code coverage.
4444
-f=ut_sonar_test_reporter
45-
Generates a JSON report providing detailed information on test specifications.
46-
This report is designed to be consumed by local services like https://about.sonarqube.com/.
45+
Generates a JSON report providing detailed information on test specifications.
46+
This report is designed to be consumed by [SonarQube](https://about.sonarqube.com/) to report code coverage.
4747
If no -f option is provided, the ut_documentation_reporter will be used.
4848
4949
-o=output - file name to save the output provided by the reporter.
50-
If defined, the output is not displayed on screen by default. This can be changed with the -s parameter.
51-
If not defined, then output will be displayed on screen, even if the parameter -s is not specified.
52-
If more than one -o parameter is specified for one -f parameter, the last one is taken into consideration.
50+
If defined, the output is not displayed on screen by default. This can be changed with the -s parameter.
51+
If not defined, then output will be displayed on screen, even if the parameter -s is not specified.
52+
If more than one -o parameter is specified for one -f parameter, the last one is taken into consideration.
5353
-s - Forces putting output to to screen for a given -f parameter.
5454
-source_path=path - Source files path to be used by coverage reporters. The path need to be relative to the priject root directory.
5555
-test_path=path - Test files path to be used by coverage reporters. The path need to be relative to the priject root directory.
@@ -60,9 +60,9 @@ You need to run the `ut_run.bat` or `ut_run` script from your project's root dir
6060

6161
Parameters -f, -o, -s are correlated. That is parameters -o and -s are defining outputs for -f.
6262

63-
Examples of invocation using sqlplus from command line:
63+
Examples of invocation from command line:
6464

65-
`ut_run @ut_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`
65+
`ut_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`
6666

6767
All Unit tests from schema/package "hr_test" will be be invoked with two reporters:
6868
- ut_documentation_reporter - will output to screen and save output to file "run.log"

0 commit comments

Comments
 (0)