-
Notifications
You must be signed in to change notification settings - Fork 15
reporters throwing the error #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you share the full command you're using to issue html coverage? |
Hi @MS-24 can you please run Cli should be downwards-compatible, but we didn't have automated tests against all previous versions (something we improved since then) As for the source-path, please see http://utplsql.org/utPLSQL/v3.1.2/userguide/coverage.html#project-based-coverage (coverage documentation of the utPLSQL version you are using). |
The source_path is not mandatory for html coverage. |
Hi @jgebal Command used for Run: Command used for reporters: Thanks!! |
Hi @pesse
|
On Point#2 ,please suggest why utplsql couldn't generate the html report. I have tried the below code for which the coverage report generated for the package 'codeToBeTested_pkg' in schema 'otherSchema' .
But with utplsql I couldn't able to see the coverage report generated.
|
Could someone help here please? |
When you run from SQL, are you also connected as |
Hi @MS-24 In order to be able to help you we need to understand few basic challenges around your current setup. Issue 1 - no coverage using utplsql-cliLooking at the commands you're using I deduct that:
The unknowns are:
The reason why I'm asking is because you have non-recommended (harder to use) setup. Due to the nature of how coverage is gathered, the user invoking (executing) unit tests must have additional privileges, if that user is not owning the code under test. Issue 2 mapping sourcesThis is again well described in doc. The idea is to be able to reflect DB code coverage on your project source files. This is only applicable if you are using some form of standardized project structure and is of great use if you want to represent coverage on Sonar (with sonar reporter) or Jenkins (with cobertura). And to see how project files coverage can be presented sonar have a look here NoteAlmost all of command-line parameters for The client doesn't do much of extra transformations on top utplsql itself. The issue you're facing (no report output) is most-likely related to db user privileges. Please let me know if that helps. |
Yes @jgebal . I am using the same schema when I use SQLPLUS ,sqldeveloper and utplsql. |
Hi @MS-24 , Example:
|
@pesse can you verify the command issued by cli when passing include list? |
The command is always |
@MS-24 do you include orai18n.jar with ojdbc in utplsql-cli lib folder? |
Thanks much @jgebal for the help provided . Very much appreciate it . The problem solved for me by using the 3.1.2 version of utPLSQL-cli along with -include option . |
Hi
I am new to implementing utPLSQL-cli .
Could you please suggest what could have gone wrong here . Is it mismatch between the utPLSQL and utPLSQL-cli ? I thought utPLSQL-cli is compatible with utPLSQL3.0 and above per documentation.
Oracle-Version: 12.1.0.2.0
Running on utPLSQL v3.1.2.2134
utPLSQL-cli 3.1.6.local
utPLSQL-java-api 3.1.6.411
Java-Version: 1.8.0_212
Thanks!!
The text was updated successfully, but these errors were encountered: