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

Skip to content

Commit 5eab4aa

Browse files
committed
Fixed Teamcity reporting of errors
Resolves #1045
1 parent 15d24af commit 5eab4aa

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

source/reporters/ut_teamcity_reporter.tpb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ create or replace type body ut_teamcity_reporter is
7474
begin
7575
l_idx := a_executables.first;
7676
while l_idx is not null loop
77-
l_message := l_message || add_error_message(a_executables(l_idx).error_backtrace, a_message_name);
77+
l_message := l_message || add_error_message( a_executables(l_idx).get_error_stack_trace(), a_message_name );
7878
l_idx := a_executables.next(l_idx);
7979
end loop;
8080
return l_message;
@@ -92,7 +92,7 @@ create or replace type body ut_teamcity_reporter is
9292
if a_test.result = ut_utils.gc_error then
9393
l_std_err_msg := l_std_err_msg || add_error_messages(a_test.before_each_list, 'Before each exception:');
9494
l_std_err_msg := l_std_err_msg || add_error_messages(a_test.before_test_list, 'Before test exception:');
95-
l_std_err_msg := l_std_err_msg || add_error_message(a_test.item.error_backtrace, 'Test exception:');
95+
l_std_err_msg := l_std_err_msg || add_error_message(a_test.item.get_error_stack_trace(), 'Test exception:');
9696
l_std_err_msg := l_std_err_msg || add_error_messages(a_test.after_test_list, 'After test exception:');
9797
l_std_err_msg := l_std_err_msg || add_error_messages(a_test.after_each_list, 'After each exception:');
9898

test/ut3_user/reporters/test_teamcity_reporter.pkb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ create or replace package body test_teamcity_reporter as
6363
<!beforeeach!>
6464
<!erroring test!>
6565
<!aftereach!>
66-
%##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']
67-
%##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']
66+
%##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 %|nORA-06512: at %|n']
67+
%##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 %|nORA-06512: at %|n' message='Error occured' name='ut3$user#.test_reporters.erroring_test']
6868
%##teamcity[testFinished timestamp='%' duration='%' name='ut3$user#.test_reporters.erroring_test']
6969
%##teamcity[testStarted timestamp='%' captureStandardOutput='true' name='ut3$user#.test_reporters.disabled_test']
7070
%##teamcity[testIgnored timestamp='%' name='ut3$user#.test_reporters.disabled_test']

0 commit comments

Comments
 (0)