8000 Fixed Teamcity reporting of errors by jgebal · Pull Request #1046 · utPLSQL/utPLSQL · GitHub
[go: up one dir, main page]

Skip to content

Fixed Teamcity reporting of errors #1046

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

Merged
merged 2 commits into from
Feb 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/reporters/ut_teamcity_reporter.tpb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ create or replace type body ut_teamcity_reporter is
begin
l_idx := a_executables.first;
while l_idx is not null loop
l_message := l_message || add_error_message(a_executables(l_idx).error_backtrace, a_message_name);
l_message := l_message || add_error_message( a_executables(l_idx).get_error_stack_trace(), a_message_name );
l_idx := a_executables.next(l_idx);
end loop;
return l_message;
Expand All @@ -92,7 +92,7 @@ create or replace type body ut_teamcity_reporter is
if a_test.result = ut_utils.gc_error then
l_std_err_msg := l_std_err_msg || add_error_messages(a_test.before_each_list, 'Before each exception:');
l_std_err_msg := l_std_err_msg || add_error_messages(a_test.before_test_list, 'Before test exception:');
l_std_err_msg := l_std_err_msg || add_error_message(a_test.item.error_backtrace, 'Test exception:');
l_std_err_msg := l_std_err_msg || add_error_message(a_test.item.get_error_stack_trace(), 'Test exception:');
l_std_err_msg := l_std_err_msg || add_error_messages(a_test.after_test_list, 'After test exception:');
l_std_err_msg := l_std_err_msg || add_error_messages(a_test.after_each_list, 'After each exception:');

Expand Down
4 changes: 2 additions & 2 deletions test/ut3_user/reporters/test_teamcity_reporter.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ create or replace package body test_teamcity_reporter as
<!beforeeach!>
<!erroring test!>
<!aftereach!>
%##teamcity[testStdErr timestamp='%' name='ut3$user#.test_reporters.erroring_test' out='Test exception:|nORA-06512: at "UT3$USER#.TEST_REPORTERS", line %|nORA-06512: at %|n|n']
%##teamcity[testFailed timestamp='%' details='Test exception:|nORA-06512: at "UT3$USER#.TEST_REPORTERS", line %|nORA-06512: at %|n|n' message='Error occured' name='ut3$user#.test_reporters.erroring_test']
%##teamcity[testStdErr timestamp='%' name='ut3$user#.test_reporters.erroring_test' out='Test exception:|nORA-06502: PL/SQL: numeric or value error: character to number conversion error|nORA-06512: at "UT3$USER#.TEST_REPORTERS", line %|nORA-06512: at %|n']
%##teamcity[testFailed timestamp='%' details='Test exception:|nORA-06502: PL/SQL: numeric or value error: character to number conversion error|nORA-06512: at "UT3$USER#.TEST_REPORTERS", line %|nORA-06512: at %|n' message='Error occured' name='ut3$user#.test_reporters.erroring_test']
%##teamcity[testFinished timestamp='%' duration='%' name='ut3$user#.test_reporters.erroring_test']
%##teamcity[testStarted timestamp='%' captureStandardOutput='true' name='ut3$user#.test_reporters.disabled_test']
%##teamcity[testIgnored timestamp='%' name='ut3$user#.test_reporters.disabled_test']
Expand Down
0