utPLSQL / utPLSQL-maven-plugin

Maven plugin for running Unit Tests with utPLSQL v3
Apache License 2.0
13 stars 10 forks source link

Sonar coverage reporter shows absolute path files #10

Closed jgarec closed 6 years ago

jgarec commented 6 years ago

Hi,

Is there any reason why findSQLs adds absolute file names instead of relative path names ?

https://github.com/utPLSQL/utPLSQL-maven-plugin/blob/0946db122f45ff29fd6072b05e5e66c756e005bf/utplsql-maven-plugin/src/main/java/org/utplsql/helper/SQLScannerHelper.java#L38

I think that the following code should be ok :

founds.add(new File(scanner.getBasedir(), basename).getPath());
alberto-hernandez commented 6 years ago

Fixed.

jgarec commented 6 years ago

10 fixes this issue and #15 adds tests