Skip to content

Commit 4d81f96

Browse files
committed
Create option for Single Line Output
1 parent 99c3861 commit 4d81f96

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

src/core/wt_text_report.pkb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,19 +304,19 @@ begin
304304
end if;
305305
if in_elapsed_msecs is not null
306306
then
307-
if in_elapsed_msecs >= 0
308-
then
309-
l_out_str := l_out_str || lpad(in_elapsed_msecs,4) || 'ms ';
310-
else
311-
l_out_str := l_out_str || 'NEG ms ';
312-
end if;
307+
l_out_str := l_out_str || lpad(in_elapsed_msecs,4) || 'ms ';
313308
end if;
314309
if in_message is not null
315310
then
316311
l_out_str := l_out_str || in_message || '. ';
317312
end if;
318313
l_out_str := l_out_str || in_assertion || ' - ';
319-
l_out_str := l_out_str || replace(replace(in_details,CHR(13),'\r'),CHR(10),'\n');
314+
if g_single_line_output
315+
then
316+
l_out_str := l_out_str || replace(replace(in_details,CHR(13),'\r'),CHR(10),'\n');
317+
else
318+
l_out_str := l_out_str || in_details;
319+
end if;
320320
return l_out_str;
321321
end format_test_result;
322322

src/core/wt_text_report.pks

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
create or replace package wt_text_report authid current_user
22
as
33

4+
-- To report the latest result details for test runner:
5+
-- begin
6+
-- wt_text_report.dbms_out('TEST_RUNNER', FALSE, FALSE, TRUE, TRUE);
7+
-- end;
8+
-- /
9+
10+
-- Turn this off to allow output across multiple lines of text
11+
g_single_line_output boolean := TRUE;
12+
413
function format_test_result
514
(in_assertion in wt_results.assertion%TYPE
615
,in_status in wt_results.status%TYPE

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy