ruby-plsql-spec icon indicating copy to clipboard operation
ruby-plsql-spec copied to clipboard

Coverage report looks wrong for triggers

Open danbroun opened this issue 8 years ago • 3 comments

If I have a look at a coverage report of a package every green/red and gray line is understandable. A coverage report for a trigger looks extremely random.

Can anyone confirm this behavior?

danbroun avatar Mar 30 '16 13:03 danbroun

A steps to reproduce or a working example of bad behavior would help

jgebal avatar Mar 30 '16 14:03 jgebal

Just create for example an insert trigger and then write a test which inserts data into the example table. If you have a look at the produced coverage report the marking which line were run looks really random. If you want I can try to attach a example report. Hope I can make it this week.

danbroun avatar Apr 04 '16 20:04 danbroun

@danbroun, may you also check PLSQL_OPTIMIZE_LEVEL option which has been used to compile the trigger? For better coverage output it's best to use 1.

javornikolov avatar Apr 04 '16 21:04 javornikolov