-
Notifications
You must be signed in to change notification settings - Fork 189
12.2 Oracle Native Block Coverage #604
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
Changes from 21 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
287590b
12.2 Stable :
lwasylow 68768f8
12.2 Stable :
lwasylow 76bf869
12.2 Stable :
lwasylow 1f4f5f0
Tests 12.2 Coverage:
lwasylow 90858eb
Added 12.2 coverage
lwasylow d77cf9a
Test 12.2 coverage
lwasylow 4f83357
Added 12.2 Coverage
lwasylow ac40332
Added 12.2 Coverage
lwasylow 5f74db9
Merge pull request #602 from lwasylow/12coveragestab2
lwasylow 9d7f16c
Added conditional install of tests for 12.2 only - when block coverag…
jgebal 20541b5
Refactoring coverage:
lwasylow ab7eb93
Coverage Refactoring:
lwasylow 8dbb1a1
Merge pull request #614 from lwasylow/feature/12cblockcoverage
lwasylow e0b220d
Merge branch 'develop' into feature/12cblockcoverage
lwasylow 2560f5b
Revert "Feature/12cblockcoverage"
lwasylow 6fe32c5
Merge pull request #615 from utPLSQL/revert-614-feature/12cblockcoverage
lwasylow 8235848
Refactor Coverage:
lwasylow 78fdab5
Refactor Coverage:
lwasylow 3a19341
Merge branch 'feature/12cblockcoverage' of github.com:lwasylow/utPLSQ…
lwasylow 466e126
Update test local
lwasylow e968f76
Merge pull request #616 from lwasylow/feature/12cblockcoverage
lwasylow 0f1d789
12.2 coverage
lwasylow faab0fe
Merge pull request #625 from lwasylow/feature/12cblockcoverage
lwasylow 35e5e13
12.2 coverage
lwasylow 1289e99
Merge branch 'feature/12cblockcoverage' of github.com:lwasylow/utPLSQ…
lwasylow d3ce10c
Merge pull request #626 from lwasylow/feature/12cblockcoverage
lwasylow c0ca9d3
Fixing error in package name
lwasylow f151a6e
Update test
lwasylow 28f7653
Statement Coverage First Commit
lwasylow 1f51049
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fea…
lwasylow 9c87b06
Merge branch 'develop' of github.com:utPLSQL/utPLSQL into feature/12c…
lwasylow d8b8e87
Updated coverage with statement level information
lwasylow 49b1b84
Move get_cov_sql function into common package to remove code duplication
lwasylow ab7eb24
Refactor Coverage to now enrich profile for partially covered lines u…
lwasylow 36279fa
Update tests and fixed typo in original coverage reporter
lwasylow 661ef74
Merge branch 'feature/12cblockcoverage' of https://github.com/utPLSQL…
lwasylow 57f7a4f
Updated coverage
lwasylow 3a2ff00
Merge branch 'develop' of https://github.com/utPLSQL/utPLSQL into fea…
lwasylow e6c2be2
Merge pull request #640 from lwasylow/feature/12cov_extended
lwasylow c9cb004
Fixes to conditional compilation
lwasylow a862b95
Fixes to new asso array during mock coverage id.
lwasylow 57ee184
Merge pull request #641 from lwasylow/feature/12cblockcoverage
lwasylow 4561795
Update test
lwasylow 0556fbe
Update test
lwasylow b91e51d
Merge branch 'feature/12cblockcoverage' of github.com:utPLSQL/utPLSQL…
lwasylow d19f941
Update test/core/reporters/test_extended_coverage.pkb
lwasylow e2e1437
Updated html reporter to show a information about the partially cover…
lwasylow a112e36
Added support for block coverage in sonar and cobertura reporters.
jgebal f0e2653
Clean-up and removal of unnecessary reporters
lwasylow 4458dff
Unify reporters
lwasylow 2027421
Update test
lwasylow 924eb9b
Update issue with part covered being zero.
lwasylow a111c6d
Update for test with timestamp
lwasylow 2d6c7d3
Merge branch 'develop' into feature/12cblockcoverage
lwasylow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,29 +106,29 @@ create or replace package body ut is | |
|
|
||
| procedure run_autonomous( | ||
| a_paths ut_varchar2_list, a_reporter ut_reporter_base, a_color_console integer, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_file_mappings ut_file_mappings, a_test_file_mappings ut_file_mappings, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_file_mappings ut_file_mappings, a_test_file_mappings ut_file_mappings, | ||
| a_include_objects ut_varchar2_list, a_exclude_objects ut_varchar2_list | ||
| ) is | ||
| pragma autonomous_transaction; | ||
| begin | ||
| ut_runner.run( | ||
| a_paths, ut_reporters(coalesce(a_reporter,ut_documentation_reporter())), | ||
| ut_utils.int_to_boolean(a_color_console), a_coverage_schemes, | ||
| ut_utils.int_to_boolean(a_color_console), a_coverage_schemes,a_coverage_type, | ||
| a_source_file_mappings, a_test_file_mappings, a_include_objects, a_exclude_objects | ||
| ); | ||
| rollback; | ||
| end; | ||
|
|
||
| procedure run_autonomous( | ||
| a_paths ut_varchar2_list, a_reporter ut_reporter_base, a_color_console integer, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as above |
||
| a_include_objects ut_varchar2_list, a_exclude_objects ut_varchar2_list | ||
| ) is | ||
| pragma autonomous_transaction; | ||
| begin | ||
| ut_runner.run( | ||
| a_paths, ut_reporters(coalesce(a_reporter,ut_documentation_reporter())), | ||
| ut_utils.int_to_boolean(a_color_console), a_coverage_schemes, | ||
| ut_utils.int_to_boolean(a_color_console), a_coverage_schemes,a_coverage_type, | ||
| ut_file_mapper.build_file_mappings(a_source_files), | ||
| ut_file_mapper.build_file_mappings(a_test_files), | ||
| a_include_objects, a_exclude_objects | ||
|
|
@@ -138,7 +138,7 @@ create or replace package body ut is | |
|
|
||
| function run( | ||
| a_reporter ut_reporter_base := null, a_color_console integer := 0, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) return ut_varchar2_rows pipelined is | ||
| l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter()); | ||
|
|
@@ -148,7 +148,7 @@ create or replace package body ut is | |
| begin | ||
| run_autonomous( | ||
| l_paths, l_reporter, a_color_console, | ||
| a_coverage_schemes, a_source_file_mappings, a_test_file_mappings, a_include_objects, a_exclude_objects | ||
| a_coverage_schemes,a_coverage_type, a_source_file_mappings, a_test_file_mappings, a_include_objects, a_exclude_objects | ||
| ); | ||
| if l_reporter is of (ut_output_reporter_base) then | ||
| l_lines := treat(l_reporter as ut_output_reporter_base).get_lines_cursor(); | ||
|
|
@@ -165,7 +165,7 @@ create or replace package body ut is | |
|
|
||
| function run( | ||
| a_reporter ut_reporter_base := null, a_color_console integer := 0, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) return ut_varchar2_rows pipelined is | ||
| l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter()); | ||
|
|
@@ -174,7 +174,7 @@ create or replace package body ut is | |
| l_line varchar2(4000); | ||
| begin | ||
| run_autonomous( | ||
| l_paths, l_reporter, a_color_console, a_coverage_schemes, a_source_files, a_test_files, | ||
| l_paths, l_reporter, a_color_console, a_coverage_schemes,a_coverage_type, a_source_files, a_test_files, | ||
| a_include_objects, a_exclude_objects | ||
| ); | ||
| if l_reporter is of (ut_output_reporter_base) then | ||
|
|
@@ -192,15 +192,15 @@ create or replace package body ut is | |
|
|
||
| function run( | ||
| a_paths ut_varchar2_list, a_reporter ut_reporter_base := null, a_color_console integer := 0, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) return ut_varchar2_rows pipelined is | ||
| l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter()); | ||
| l_lines sys_refcursor; | ||
| l_line varchar2(4000); | ||
| begin | ||
| run_autonomous( | ||
| a_paths, l_reporter, a_color_console, a_coverage_schemes, a_source_file_mappings, a_test_file_mappings, | ||
| a_paths, l_reporter, a_color_console, a_coverage_schemes,a_coverage_type, a_source_file_mappings, a_test_file_mappings, | ||
| a_include_objects, a_exclude_objects | ||
| ); | ||
| if l_reporter is of (ut_output_reporter_base) then | ||
|
|
@@ -218,15 +218,15 @@ create or replace package body ut is | |
|
|
||
| function run( | ||
| a_paths ut_varchar2_list, a_reporter ut_reporter_base := null, a_color_console integer := 0, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) return ut_varchar2_rows pipelined is | ||
| l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter()); | ||
| l_lines sys_refcursor; | ||
| l_line varchar2(4000); | ||
| begin | ||
| run_autonomous( | ||
| a_paths, l_reporter, a_color_console, a_coverage_schemes, a_source_files, a_test_files, | ||
| a_paths, l_reporter, a_color_console, a_coverage_schemes,a_coverage_type, a_source_files, a_test_files, | ||
| a_include_objects, a_exclude_objects | ||
| ); | ||
| if l_reporter is of (ut_output_reporter_base) then | ||
|
|
@@ -244,7 +244,7 @@ create or replace package body ut is | |
|
|
||
| function run( | ||
| a_path varchar2, a_reporter ut_reporter_base := null, a_color_console integer := 0, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) return ut_varchar2_rows pipelined is | ||
| l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter()); | ||
|
|
@@ -253,7 +253,7 @@ create or replace package body ut is | |
| l_line varchar2(4000); | ||
| begin | ||
| run_autonomous( | ||
| l_paths, l_reporter, a_color_console, a_coverage_schemes, a_source_file_mappings, a_test_file_mappings, | ||
| l_paths, l_reporter, a_color_console, a_coverage_schemes,a_coverage_type, a_source_file_mappings, a_test_file_mappings, | ||
| a_include_objects, a_exclude_objects | ||
| ); | ||
| if l_reporter is of (ut_output_reporter_base) then | ||
|
|
@@ -271,7 +271,7 @@ create or replace package body ut is | |
|
|
||
| function run( | ||
| a_path varchar2, a_reporter ut_reporter_base := null, a_color_console integer := 0, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) return ut_varchar2_rows pipelined is | ||
| l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter()); | ||
|
|
@@ -280,7 +280,7 @@ create or replace package body ut is | |
| l_line varchar2(4000); | ||
| begin | ||
| run_autonomous( | ||
| l_paths, l_reporter, a_color_console, a_coverage_schemes, a_source_files, a_test_files, | ||
| l_paths, l_reporter, a_color_console, a_coverage_schemes,a_coverage_type, a_source_files, a_test_files, | ||
| a_include_objects, a_exclude_objects | ||
| ); | ||
| if l_reporter is of (ut_output_reporter_base) then | ||
|
|
@@ -298,13 +298,13 @@ create or replace package body ut is | |
|
|
||
| procedure run( | ||
| a_paths ut_varchar2_list, a_reporter ut_reporter_base := null, a_color_console boolean := false, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) is | ||
| l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter()); | ||
| begin | ||
| run_autonomous( | ||
| a_paths, l_reporter, ut_utils.boolean_to_int(a_color_console), a_coverage_schemes, a_source_file_mappings, a_test_file_mappings, | ||
| a_paths, l_reporter, ut_utils.boolean_to_int(a_color_console), a_coverage_schemes,a_coverage_type, a_source_file_mappings, a_test_file_mappings, | ||
| a_include_objects, a_exclude_objects | ||
| ); | ||
| if l_reporter is of (ut_output_reporter_base) then | ||
|
|
@@ -315,13 +315,13 @@ create or replace package body ut is | |
|
|
||
| procedure run( | ||
| a_paths ut_varchar2_list, a_reporter ut_reporter_base := null, a_color_console boolean := false, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) is | ||
| l_reporter ut_reporter_base := coalesce(a_reporter, ut_documentation_reporter()); | ||
| begin | ||
| run_autonomous( | ||
| a_paths, l_reporter, ut_utils.boolean_to_int(a_color_console), a_coverage_schemes, a_source_files, a_test_files, | ||
| a_paths, l_reporter, ut_utils.boolean_to_int(a_color_console), a_coverage_schemes,a_coverage_type, a_source_files, a_test_files, | ||
| a_include_objects, a_exclude_objects | ||
| ); | ||
| if l_reporter is of (ut_output_reporter_base) then | ||
|
|
@@ -332,50 +332,50 @@ create or replace package body ut is | |
|
|
||
| procedure run( | ||
| a_reporter ut_reporter_base := null, a_color_console boolean := false, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) is | ||
| begin | ||
| ut.run( | ||
| ut_varchar2_list(sys_context('userenv', 'current_schema')), a_reporter, a_color_console, | ||
| a_coverage_schemes, a_source_file_mappings, a_test_file_mappings, a_include_objects, a_exclude_objects | ||
| a_coverage_schemes,a_coverage_type, a_source_file_mappings, a_test_file_mappings, a_include_objects, a_exclude_objects | ||
| ); | ||
| end; | ||
|
|
||
| procedure run( | ||
| a_reporter ut_reporter_base := null, a_color_console boolean := false, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) is | ||
| begin | ||
| ut.run( | ||
| ut_varchar2_list(sys_context('userenv', 'current_schema')), a_reporter, a_color_console, | ||
| a_coverage_schemes, a_source_files, a_test_files, a_include_objects, a_exclude_objects | ||
| a_coverage_schemes,a_coverage_type, a_source_files, a_test_files, a_include_objects, a_exclude_objects | ||
| ); | ||
| end; | ||
|
|
||
| procedure run( | ||
| a_path varchar2, a_reporter ut_reporter_base := null, a_color_console boolean := false, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_file_mappings ut_file_mappings := null, a_test_file_mappings ut_file_mappings := null, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) is | ||
| l_paths ut_varchar2_list := ut_varchar2_list(coalesce(a_path, sys_context('userenv', 'current_schema'))); | ||
| begin | ||
| ut.run( | ||
| l_paths, a_reporter, a_color_console, a_coverage_schemes, a_source_file_mappings, a_test_file_mappings, | ||
| l_paths, a_reporter, a_color_console, a_coverage_schemes,a_coverage_type, a_source_file_mappings, a_test_file_mappings, | ||
| a_include_objects, a_exclude_objects | ||
| ); | ||
| end; | ||
|
|
||
| procedure run( | ||
| a_path varchar2, a_reporter ut_reporter_base := null, a_color_console boolean := false, | ||
| a_coverage_schemes ut_varchar2_list := null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_coverage_schemes ut_varchar2_list := null,a_coverage_type varchar2:=null, a_source_files ut_varchar2_list, a_test_files ut_varchar2_list, | ||
| a_include_objects ut_varchar2_list := null, a_exclude_objects ut_varchar2_list := null | ||
| ) is | ||
| l_paths ut_varchar2_list := ut_varchar2_list(coalesce(a_path, sys_context('userenv', 'current_schema'))); | ||
| begin | ||
| ut.run( | ||
| l_paths, a_reporter, a_color_console, a_coverage_schemes, a_source_files, a_test_files, | ||
| l_paths, a_reporter, a_color_console, a_coverage_schemes,a_coverage_type, a_source_files, a_test_files, | ||
| a_include_objects, a_exclude_objects | ||
| ); | ||
| end; | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new parameter should be added as last to avoid breaking changes to API.