Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Tigger ut run with coverage from the same sql session multiple times, only the first run create new runid #513
Comments
|
I did some testing and cannot reproduce on Oracle 12. var x varchar2;
begin
:x := to_char(sysdate,'yyyy-mm-dd hh24.mi.ss');
dbms_output.put_line('Start date is:'||:x);
end;
/
begin
ut.run(ut_coverage_sonar_reporter());
end;
/
begin
ut.run(ut_coverage_sonar_reporter());
end;
/
select case when count(1) = 2 then 'OK' else 'ERROR' end||' expected 2, got '||count(1) as status
from plsql_profiler_runs where run_date >= to_date(:x,'yyyy-mm-dd hh24.mi.ss');The above, gives following results:
|
|
I got this issue from oracle 11.2. Maybe that is the reason. |
|
Can you tell us which version of utPLSQL you use? |
|
utPLSQL - Version v3.0.2.938 |
|
It is v3.0.2
|
|
reset package state helps , but it somehow repressed the dbms_output |
|
@email2ying Yesterday I was checking using develop version of the framework - that is why I could not see the issue occur. Once you get v3.0.3 or above installed -> it will work fine. |
Steps to reproduce: