Thanks to visit codestin.com
Credit goes to github.com

Skip to content

UT_TEAMCITY_REPORTER: Unhelpful message on error #1070

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

Closed
pesse opened this issue Apr 20, 2020 · 1 comment
Closed

UT_TEAMCITY_REPORTER: Unhelpful message on error #1070

pesse opened this issue Apr 20, 2020 · 1 comment
Labels

Comments

@pesse
Copy link
Member

pesse commented Apr 20, 2020

The ut_teamcity_reporter provides a pretty unhelpful, general "Error occured" message when an exception occurs during a test run. It adds the callstack, but not the actual error.

Instead, it should provide the actual error message.

create or replace package ut_error as
    -- %suite(Error reporting showcase)

    -- %test(This throws an error)
	procedure throw_error;
end;
/

create or replace package body ut_error as
    procedure throw_error as
    begin
        raise_application_error(-20000, 'Helpful error message');
    end;
end;
/

call ut.run('ut_error', ut_teamcity_reporter());

Output:

##teamcity[testSuiteStarted timestamp='2020-04-20T12:20:00.908+0200' name='Error reporting showcase']
##teamcity[testStarted timestamp='2020-04-20T12:20:00.909+0200' captureStandardOutput='true' name='pmuser.ut_error.throw_error']
##teamcity[testStdErr timestamp='2020-04-20T12:20:00.913+0200' name='pmuser.ut_error.throw_error' out='Test exception:|nORA-06512: in "PMUSER.UT_ERROR", Zeile 4|nORA-06512: in Zeile 6|n|n']
##teamcity[testFailed timestamp='2020-04-20T12:20:00.913+0200' details='Test exception:|nORA-06512: in "PMUSER.UT_ERROR", Zeile 4|nORA-06512: in Zeile 6|n|n' message='Error occured' name='p
muser.ut_error.throw_error']
##teamcity[testFinished timestamp='2020-04-20T12:20:00.913+0200' duration='3' name='pmuser.ut_error.throw_error']
##teamcity[testSuiteFinished timestamp='2020-04-20T12:20:00.914+0200' name='Error reporting showcase']
@pesse pesse added the bug label Apr 20, 2020
@pesse
Copy link
Member Author

pesse commented Apr 20, 2020

My bad: Duplicate of #1045

@pesse pesse closed this as completed Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant