You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running tests with ut_tfs_junit_reporter on suite packages containing contexts, each context is reported as a separate suite.
This doesn't seem correct as we loose ability to represent physical test suite pacakges as units of work/units of reporting
Provide version info 3.1.10
Information about client software
Not applicable.
To Reproduce
Steps to reproduce the behavior:
Create suites with context(s):
create or replace package demo_tfs_issue_0 as--%suite(some suite name)--%context(some context)--%context(some nested context)--%test(first test)
procedure test_procedure1;
--%endcontext--%endcontext
end;
/
create or replace package body demo_tfs_issue_0 as
procedure test_procedure1 is beginut.expect(1).to_be_not_null; end;
end;
/
create or replace package demo_tfs_issue as--%suite(some suite name)--%context(some context)--%context(some nested context)--%test(first test)
procedure test_procedure1;
--%endcontext--%endcontext--%context(some context)--%context(some nested context)--%test(second test)
procedure test_procedure2;
--%endcontext--%test(third test)
procedure test_procedure3;
--%endcontext--%context(second context)--%test(fourth test)
procedure test_procedure4;
--%endcontext--%context(third context)--%test(fifth test)
procedure test_procedure5;
--%test(sixth test)
procedure test_procedure6;
--%endcontext--%test(seventh test)
procedure test_procedure7;
--%test(eight test)
procedure test_procedure8;
--%test(nineth test)
procedure test_procedure9;
--%test(tenth test)
procedure test_procedure10;
end;
/
create or replace package body demo_tfs_issue as
procedure test_procedure1 is beginut.expect(1).to_be_not_null; end;
procedure test_procedure2 is beginut.expect(1).to_be_not_null; end;
procedure test_procedure3 is beginut.expect(1).to_be_not_null; end;
procedure test_procedure4 is beginut.expect(1).to_be_not_null; end;
procedure test_procedure5 is beginut.expect(1).to_be_not_null; end;
procedure test_procedure6 is beginut.expect(1).to_be_not_null; end;
procedure test_procedure7 is beginut.expect(1).to_be_not_null; end;
procedure test_procedure8 is beginut.expect(1).to_be_not_null; end;
procedure test_procedure9 is beginut.expect(1).to_be_not_null; end;
procedure test_procedure10 is beginut.expect(1).to_be_not_null; end;
end;
/
Run unit tests with TSF reporter:
clear screen
set serverout on
exec ut.run( utp3.ut_tfs_junit_reporter() );
See results, where each context is reported as individual item and there are no tests reported for unit test suite except the ones that live outside of context.
Describe the bug
When running tests with
ut_tfs_junit_reporter
on suite packages containing contexts, each context is reported as a separate suite.This doesn't seem correct as we loose ability to represent physical test suite pacakges as units of work/units of reporting
Provide version info
3.1.10
Information about client software
Not applicable.
To Reproduce
Steps to reproduce the behavior:
Create suites with context(s):
Run unit tests with TSF reporter:
See results, where each context is reported as individual item and there are no tests reported for unit test suite except the ones that live outside of context.
Expected behavior
<testsuite>
item<testsuite>
Example of expected output
Additional context
The
ut_tfs_junit_reporter
is reporting the "flat" suite structure as opposed tout_junit_reporter
which supports nesting of<testsuite>
elements.The text was updated successfully, but these errors were encountered: