Skip to content

fixed failed expectation source code line reporting because 12c repor…#332

Merged
Pazus merged 3 commits into
utPLSQL:developfrom
Pazus:fix-expectation-reporting
Jun 1, 2017
Merged

fixed failed expectation source code line reporting because 12c repor…#332
Pazus merged 3 commits into
utPLSQL:developfrom
Pazus:fix-expectation-reporting

Conversation

@Pazus

@Pazus Pazus commented May 26, 2017

Copy link
Copy Markdown
Member
  1. fixed the issue when line and package of expectation failed was not reported correctly
  2. enchanted for 12.2 as call_stack is provided with procedure level detals

@coveralls

coveralls commented May 26, 2017

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 91.708% when pulling 3830360 on Pazus:fix-expectation-reporting into a954a60 on utPLSQL:develop.

1 similar comment
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 91.708% when pulling 3830360 on Pazus:fix-expectation-reporting into a954a60 on utPLSQL:develop.

c_expectation_search_pattern constant varchar2(500) := '(.*\.UT_EXPECTATION_RESULT\s+)(.*\.UT_EXPECTATION[A-Z0-9#_$]*(\.\w+)?.*\s+)+(.*)\s';
begin
l_caller_stack_line := regexp_substr( c_call_stack, c_expectation_search_pattern, 1, 1, 'm', 2);
--dbms_output.put_line(c_call_stack);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove commented code?

@jgebal jgebal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just two minor comments.

Comment thread tests/RunAll.sql Outdated

@@lib/RunTest.sql ut_reporters/ut_coverage_sonar_reporter.AcceptsFileMapping.sql
@@lib/RunTest.sql ut_reporters/ut_coverage_sonar_reporter.BuildsSonarCoverageReport.sql
@@lib/RunTest.sql ut_reporters/ut_documentation_reporter.ProducesExpectedOutputs.sql

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe name the test: providesCorrectLineFromStacktrace?

@coveralls

coveralls commented May 29, 2017

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 91.708% when pulling 1d6da23 on Pazus:fix-expectation-reporting into 1236007 on utPLSQL:develop.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 91.708% when pulling 1d6da23 on Pazus:fix-expectation-reporting into 1236007 on utPLSQL:develop.

1 similar comment
@coveralls

coveralls commented May 29, 2017

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 91.708% when pulling 1d6da23 on Pazus:fix-expectation-reporting into 1236007 on utPLSQL:develop.

@Pazus Pazus merged commit a9ffefa into utPLSQL:develop Jun 1, 2017
@Pazus Pazus removed the in progress label Jun 1, 2017
@Pazus Pazus deleted the fix-expectation-reporting branch July 15, 2017 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants