File tree Expand file tree Collapse file tree 4 files changed +64
-0
lines changed
Expand file tree Collapse file tree 4 files changed +64
-0
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,4 @@ coverage.xml
2727tfs_test_results.xml
2828junit_test_results.xml
2929test_results.xml
30+ * debug * .xml
Original file line number Diff line number Diff line change 1+ create or replace package body test_debug_reporter as
2+
3+ g_actual clob;
4+
5+ procedure run_reporter is
6+ l_results ut3.ut_varchar2_list;
7+ begin
8+ select *
9+ bulk collect into l_results
10+ from table(
11+ ut3.ut.run(
12+ 'test_reporters',
13+ ut3.ut_debug_reporter()
14+ )
15+ );
16+ g_actual := ut3.ut_utils.table_to_clob(l_results);
17+ end;
18+
19+ procedure includes_event_info is
20+ l_expected varchar2(32767);
21+ begin
22+ l_expected := '<DEBUG_LOG>\s+' ||
23+ '(<DEBUG>\s+' ||
24+ '<TIMESTAMP>[0-9\-]+T[0-9:\.]+<\/TIMESTAMP>\s+' ||
25+ '<TIME_FROM_START>[0-9 \+:\.]+<\/TIME_FROM_START>\s+' ||
26+ '<TIME_FROM_PREVIOUS>[0-9 \+:\.]+<\/TIME_FROM_PREVIOUS>\s+' ||
27+ '<EVENT_NAME>\w+<\/EVENT_NAME>\s+' ||
28+ '<CALL_STACK>(\s|\S)+?<\/CALL_STACK>(\s|\S)+?' ||
29+ '<\/DEBUG>\s+)+' ||
30+ '<\/DEBUG_LOG>';
31+ ut.expect( g_actual ).to_match( l_expected, 'm' );
32+ end;
33+
34+ procedure includes_run_info is
35+ l_expected varchar2(32767);
36+ begin
37+ l_expected := '<DEBUG>(\s|\S)+?<UT_RUN_INFO>(\s|\S)+?<\/UT_RUN_INFO>\s+<\/DEBUG>';
38+ ut.expect( g_actual ).to_match( l_expected, 'm' );
39+ end;
40+
41+
42+ end;
43+ /
44+
45+
Original file line number Diff line number Diff line change 1+ create or replace package test_debug_reporter as
2+
3+ --%suite(ut_debug_reporter)
4+ --%suitepath(utplsql.core.reporters)
5+
6+ --%beforeall
7+ procedure run_reporter;
8+
9+ --%test(Includes event info for every event)
10+ procedure includes_event_info;
11+
12+ --%test(Includes run info)
13+ procedure includes_run_info;
14+
15+ end;
16+ /
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ set define off
4949@@core/ reporters/ test_coverage/ test_cov_cobertura_reporter .pks
5050@@core/ reporters/ test_junit_reporter .pks
5151@@core/ reporters/ test_realtime_reporter .pks
52+ @@core/ reporters/ test_debug_reporter .pks
5253set define on
5354@@install_below_12_2 .sql ' core/reporters/test_coverage/test_html_proftab_reporter.pks'
5455set define off
@@ -100,6 +101,7 @@ set define off
100101@@core/ reporters/ test_coverage/ test_cov_cobertura_reporter .pkb
101102@@core/ reporters/ test_junit_reporter .pkb
102103@@core/ reporters/ test_realtime_reporter .pkb
104+ @@core/ reporters/ test_debug_reporter .pkb
103105set define on
104106@@install_below_12_2 .sql ' core/reporters/test_coverage/test_html_proftab_reporter.pkb'
105107set define off
You can’t perform that action at this time.
0 commit comments