-
Notifications
You must be signed in to change notification settings - Fork 78
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
Better support for test and coverage reports generated by utPLSQL #156
Comments
To be imported correctly, the report should be generated without ny file mapping and the path to report(s) should be provided in the property sonar.zpa.utplsql.reportPaths
To be imported correctly, the report should be generated without ny file mapping and the path to report(s) should be provided in the property sonar.zpa.utplsql.reportPaths
With the the new sensor, importing utPLSQL test reports has been streamlined. The previous requirement for test file mapping in utplsql-cli will become obsolete. Users can exclusively rely on the newly introduced property |
…r disabled tests to the total of tests (#156)
…r disabled tests to the total of tests (#156)
…start with the executed code (#156) This fixes the following limitations documented in the utPLSQL docs: - Each database (source-code) object is stored in an individual file. Package/type specification is kept separate from its body. - Each file contains representation of database object "as is". No extra commands (like set echo off ALTER SESSION SET PLSQL_CCFLAGS = 'debug:TRUE';) or blank lines are present before CREATE TYPE,CREATE TYPE etc. With this changes, it's possible to import the coverage correctly even in these situations
I am currently importing test and coverage data of the utPLSQL project to the SonarQube + ZPA demo instance. The reports are generated using the following command, which does not include any object-file mapping argument:
The data is imported correctly without any errors or warnings, confirming that the implementation works properly:
This should be enough for most users. |
Generating tests and coverage accurately with utPLSQL-cli can be quite challenging due to its mapping configuration, as illustrated in this guide.
Achieving accurate results can be challenging due to certain constraints, as outlined in the official documentation:
Generating a report without specifying any object-file mapping rule will return a report without file path. Examples:
The ZPA parser already parses all primary and test sources, and it can identify the file that declares the
function scott.betwnstr
. The core idea involves:sonar.zpa.tests.reportPaths
andsonar.zpa.coverage.reportPaths
into the plugin. These can be populated with the test and coverage reports, regardless of object-file mapping details.This approach should overcome all the current limitations.
The text was updated successfully, but these errors were encountered: