8000 Feature/add reason to disable by lwasylow · Pull Request #1183 · utPLSQL/utPLSQL · GitHub
[go: up one dir, main page]

Skip to content

Feature/add reason to disable #1183

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 8 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update coverage
  • Loading branch information
lwasylow committed Feb 7, 2022
commit 78cfb830176d5eb0d6456f4c83244586225b4b3e
11 changes: 11 additions & 0 deletions test/ut3_user/reporters.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ as
--%disabled(Disabled for testing purpose)
procedure disabled_test;

--%test(a disabled test with no reason)
--%disabled
procedure disabled_test_no_reason;

--%aftereach
procedure aftereach;

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

procedure disabled_test_no_reason
is
begin
dbms_output.put_line('<!this should not execute!>');
ut3_develop.ut.expect(1,'this should not execute').to_equal(1);
end;

procedure beforeall is
begin
dbms_output.put_line('<!beforeall!>');
Expand Down
3 changes: 2 additions & 1 deletion test/ut3_user/reporters/test_documentation_reporter.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ create or replace package body test_documentation_reporter as
<!erroring test!>
<!aftereach!>
a disabled test [0 sec] (DISABLED - Disabled for testing purpose)
a disabled test with no reason [0 sec] (DISABLED)
<!afterall!>
%
Failures:
Expand All @@ -40,7 +41,7 @@ Failures:
ORA-06512: at "UT3$USER#.TEST_REPORTERS", line 44%
ORA-06512: at line 6
Finished in % seconds
4 tests, 1 failed, 1 errored, 1 disabled, 0 warning(s)%]';
5 tests, 1 failed, 1 errored, 2 disabled, 0 warning(s)%]';

begin
select *
Expand Down
17 changes: 11 additions & 6 deletions test/ut3_user/reporters/test_junit_reporter.pkb
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ create or replace package body test_junit_reporter as
l_results ut3_develop.ut_varchar2_list;
l_actual clob;
l_expected varchar2(32767):=q'[<?xml version="1.0"?>
<testsuites tests="4" disabled="1" errors="1" failures="1" name="" time="%" >
<testsuite tests="4" id="1" package="org" disabled="1" errors="1" failures="1" name="org" time="%" >
<testsuite tests="4" id="2" package="org.utplsql" disabled="1" errors="1" failures="1" name="utplsql" time="%" >
<testsuite tests="4" id="3" package="org.utplsql.tests" disabled="1" errors="1" failures="1" name="tests" time="%" >
<testsuite tests="4" id="4" package="org.utplsql.tests.helpers" disabled="1" errors="1" failures="1" name="helpers" time="%" >
<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="%" >
<testsuites tests="5" disabled="2" errors="1" failures="1" name="" time="%" >
<testsuite tests="5" id="1" package="org" disabled="2" errors="1" failures="1" name="org" time="%" >
<testsuite tests="5" id="2" package="org.utplsql" disabled="2" errors="1" failures="1" name="utplsql" time="%" >
<testsuite tests="5" id="3" package="org.utplsql.tests" disabled="2" errors="1" failures="1" name="tests" time="%" >
<testsuite tests="5" id="4" package="org.utplsql.tests.helpers" disabled="2" errors="1" failures="1" name="helpers" time="%" >
<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="%" >
<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="%" >
<testcase classname="org.utplsql.tests.helpers.test_reporters.some_context" assertions="1" name="passing_test" time="%" >
<system-out>%
Expand Down Expand Up @@ -255,6 +255,11 @@ create or replace package body test_junit_reporter as
<system-out/>
<system-err/>
</testcase>
<testcase classname="org.utplsql.tests.helpers.test_reporters" assertions="0" name="a disabled test with no reason" time="0" status="Disabled">
<skipped/>
<system-out/>
<system-err/>
</testcase>
<system-out>%
</system-out>
<system-err/>
Expand Down
0