-
Notifications
You must be signed in to change notification settings - Fork 186
ORA-00001 returned before ut_coverage_html_reporter finished #1086
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
The issue shoul be moved to utPLSQL main project |
This is really odd. I didn't realize it's possible |
Just checked. Trigger name can overlap with package or procedure or function name. Can you check if this is duplicated in your case? |
Can be at least the duplicate name identified? I can also see the following: |
Even when I do just:
I got the same error |
@hehawe select
owner, object_name,
min(object_type) first_object_type, max(object_type) last_object_type,
count(1) duplicate_object_name_count
from dba_objects
where object_type in ('PACAKGE BODY','TYPE BODY','PROCEDURE','FUNCTION','TRIGGER')
group by owner, object_name
having count(1) > 1
order by owner, object_name I've managed to reproduce the issue using the following steps: create or replace package test_duplicate_name is
procedure some_procedure;
end;
create or replace package body test_duplicate_name is
procedure some_procedure is
begin
null;
end;
end;
/
create table test_table (id integer);
create or replace trigger test_duplicate_name
before insert on test_table
begin
null;
end;
begin
ut.run(ut_coverage_html_reporter());
end; And I go the error as described:
Workaround for nowRename duplicate objects. Long-term, a fix is needed in utPLSQL to address this issue. Should be relatively easy to fix now that we know what the cause is. |
Hi Jacek,
Thanks for your effort, |
Can you raise this as a separate issue please? |
Resolves #1086 TODO - need to fix coverage reporting so that coverage is grouped by object type not only object name
Fixed issue with reporting non-block coverage as block coverage. Resolves #1086
@hehawe |
Hi,
When I run something like
utPLSQL-cli/bin/utplsql run xxx/yyy@//zzz:1521/localpdb -c -f=ut_coverage_html_reporter -o=coverage.html
I get the following error
Successfully connected to database. UtPLSQL core: v3.1.10.3349
Oracle-Version: 18.0.0.0.0
Running tests now.
TestRunner initialized
Running on utPLSQL v3.1.10.3349
Initializing reporters
Running tests
ORA-00001: unique constraint (UT3.UT_COVERAGE_SOURCES_TMP_PK) violated
ORA-06512: at "UT3.UT_RUNNER", line 180
ORA-06512: at "UT3.UT_COVERAGE_HELPER", line 37
ORA-06512: at "UT3.UT_COVERAGE", line 166
ORA-06512: at "UT3.UT_COVERAGE", line 235
ORA-06512: at "UT3.UT_COVERAGE_HTML_REPORTER", line 35
ORA-06512: at "UT3.UT_REPORTER_BASE", line 193
ORA-06512: at "UT3.UT_EVENT_MANAGER", line 70
ORA-06512: at "UT3.UT_EVENT_MANAGER", line 80
ORA-06512: at "UT3.UT_RUN", line 74
ORA-06512: at "UT3.UT_SUITE_ITEM", line 49
ORA-06512: at "UT3.UT_RUNNER", line 172
ORA-06512: at line 1
at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:509)
at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:461)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1104)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:550)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:268)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:655)
Am I doing something wrong or there's a bug?
I get the same result running ut_coverage_html_reporter in sql developer, so it's not related just to cli.
The text was updated successfully, but these errors were encountered: