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

Skip to content

Commit f86155c

Browse files
authored
Merge pull request #1 from jgebal/project_path
Updated documentation.
2 parents 1b2abdf + 1e38cc0 commit f86155c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

docs/userguide/ut_run-script.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
The `ut_run.bat` and `ut_run` scripts are designed to allow invocation of utPLSQL with multiple reporters.
22
It allows saving of outcomes into multiple output files.
33
It also facilitates displaying on screen unit test results while the execution is still ongoing.
4-
Current limit of script parameters is 39
4+
Current limit of script parameters is 39.
55

66
The easiest way to use it, is by adding the client_source/sqlplus folder on your PATH.
77

8+
You need to run the `ut_run.bat` or `ut_run` script from your project's root directory for the Sonar and Coveralls reports to be valid.
9+
810
# Script Invocation
911
ut_run user/password@database [-p=(ut_path|ut_paths)] [-c] [-f=format [-o=output] [-s] ...] [-source_path=path] [-test_path=path]
1012

@@ -49,8 +51,8 @@ The easiest way to use it, is by adding the client_source/sqlplus folder on your
4951
If not defined, then output will be displayed on screen, even if the parameter -s is not specified.
5052
If more than one -o parameter is specified for one -f parameter, the last one is taken into consideration.
5153
-s - Forces putting output to to screen for a given -f parameter.
52-
-source_path=path - Source files path to be used by coverage reporters.
53-
-test_path=path - Test files path to be used by coverage reporters.
54+
-source_path=path - Source files path to be used by coverage reporters. The path need to be relative to the priject root directory.
55+
-test_path=path - Test files path to be used by coverage reporters. The path need to be relative to the priject root directory.
5456
-c - If specified, enables printing of test results in colors as defined by ANSICONSOLE standards
5557
```
5658

@@ -60,11 +62,11 @@ Parameters -f, -o, -s are correlated. That is parameters -o and -s are defining
6062

6163
Examples of invocation using sqlplus from command line:
6264

63-
`ut_run @ut_run hr/hr@xe -p=hr_test -f=ut_documentation_reporter -o=run.log -s -f=ut_html_reporter -o=coverage.html -source_path=source`
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`
6466

6567
All Unit tests from schema/package "hr_test" will be be invoked with two reporters:
66-
- ut_documentation_reporter - will output to screen and save it's output to file "run.log"
67-
- ut_html_reporter - will read file structure from source folder, and save it's output to file "coverage.html"
68+
- ut_documentation_reporter - will output to screen and save output to file "run.log"
69+
- ut_coverage_html_reporter - will report on database objects that are mapping to file structure from "source" folder, and save output to file "coverage.html"
6870

6971
`ut_run hr/hr@xe`
7072

0 commit comments

Comments
 (0)