8000 Update coverage · utPLSQL/utPLSQL@78cfb83 · GitHub
[go: up one dir, main page]

Skip to content

Commit 78cfb83

Browse files
committed
Update coverage
1 parent 2ea9a53 commit 78cfb83

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

test/ut3_user/reporters.pkb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ as
3838
--%disabled(Disabled for testing purpose)
3939
procedure disabled_test;
4040

41+
--%test(a disabled test with no reason)
42+
--%disabled
43+
procedure disabled_test_no_reason;
44+
4145
--%aftereach
4246
procedure aftereach;
4347

@@ -100,6 +104,13 @@ as
100104
ut3_develop.ut.expect(1,'this should not execute').to_equal(1);
101105
end;
102106

107+
procedure disabled_test_no_reason
108+
is
109+
begin
110+
dbms_output.put_line('<!this should not execute!>');
111+
ut3_develop.ut.expect(1,'this should not execute').to_equal(1);
112+
end;
113+
103114
procedure beforeall is
104115
begin
105116
dbms_output.put_line('<!beforeall!>');

test/ut3_user/reporters/test_documentation_reporter.pkb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ create or replace package body test_documentation_reporter as
2525
<!erroring test!>
2626
<!aftereach!>
2727
a disabled test [0 sec] (DISABLED - Disabled for testing purpose)
28+
a disabled test with no reason [0 sec] (DISABLED)
2829
<!afterall!>
2930
%
3031
Failures:
@@ -40,7 +41,7 @@ Failures:
4041
ORA-06512: at "UT3$USER#.TEST_REPORTERS", line 44%
4142
ORA-06512: at line 6
4243
Finished in % seconds
43-
4 tests, 1 failed, 1 errored, 1 disabled, 0 warning(s)%]';
44+
5 tests, 1 failed, 1 errored, 2 disabled, 0 warning(s)%]';
4445

4546
begin
4647
select *

test/ut3_user/reporters/test_junit_reporter.pkb

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,12 @@ create or replace package body test_junit_reporter as
219219
l_results ut3_develop.ut_varchar2_list;
220220
l_actual clob;
221221
l_expected varchar2(32767):=q'[<?xml version="1.0"?>
222-
<testsuites tests="4" disabled="1" errors="1" failures="1" name="" time="%" >
223-
<testsuite tests="4" id="1" package="org" disabled="1" errors="1" failures="1" name="org" time="%" >
224-
<testsuite tests="4" id="2" package="org.utplsql" disabled="1" errors="1" failures="1" name="utplsq C704 l" time="%" >
225-
<testsuite tests="4" id="3" package="org.utplsql.tests" disabled="1" errors="1" failures="1" name="tests" time="%" >
226-
<testsuite tests="4" id="4" package="org.utplsql.tests.helpers" disabled="1" errors="1" failures="1" name="helpers" time="%" >
227-
<testsuite tests="4" id="5" package="org.utplsql.tests.helpers.test_reporters" disabled="1" errors="1" failures="1" name="A suite for testing different outcomes from reporters" time="%" >
222+
<testsuites tests="5" disabled="2" errors="1" failures="1" name="" time="%" >
223+
<testsuite tests="5" id="1" package="org" disabled="2" errors="1" failures="1" name="org" time="%" >
224+
<testsuite tests="5" id="2" package="org.utplsql" disabled="2" errors="1" failures="1" name="utplsql" time="%" >
225+
<testsuite tests="5" id="3" package="org.utplsql.tests" disabled="2" errors="1" failures="1" name="tests" time="%" >
226+
<testsuite tests="5" id="4" package="org.utplsql.tests.helpers" disabled="2" errors="1" failures="1" name="helpers" time="%" >
227+
<testsuite tests="5" id="5" package="org.utplsql.tests.helpers.test_reporters" disabled="2" errors="1" failures="1" name="A suite for testing different outcomes from reporters" time="%" >
228228
<testsuite tests="1" id="6" package="org.utplsql.tests.helpers.test_reporters.some_context" disabled="0" errors="0" failures="0" name="A description of some context" time="%" >
229229
<testcase classname="org.utplsql.tests.helpers.test_reporters.some_context" assertions="1" name="passing_test" time="%" >
230230
<system-out>%
@@ -255,6 +255,11 @@ create or replace package body test_junit_reporter as
255255
<system-out/>
256256
<system-err/>
257257
</testcase>
258+
<testcase classname="org.utplsql.tests.helpers.test_reporters" assertions="0" name="a disabled test with no reason" time="0" status="Disabled">
259+
<skipped/>
260+
<system-out/>
261+
<system-err/>
262+
</testcase>
258263
<system-out>%
259264
</system-out>
260265
<system-err/>

0 commit comments

Comments
 (0)
0