René's URL Explorer Experiment


Title: Bad results for failing standalone expectations on compound data · Issue #998 · utPLSQL/utPLSQL · GitHub

Open Graph Title: Bad results for failing standalone expectations on compound data · Issue #998 · utPLSQL/utPLSQL

X Title: Bad results for failing standalone expectations on compound data · Issue #998 · utPLSQL/utPLSQL

Description: Describe the bug When running standalone expectations in a single session and having more than one failing expectation, the results returned by report are wrong. This is probably also observable in regular run,when running more than one ...

Open Graph Description: Describe the bug When running standalone expectations in a single session and having more than one failing expectation, the results returned by report are wrong. This is probably also observable in...

X Description: Describe the bug When running standalone expectations in a single session and having more than one failing expectation, the results returned by report are wrong. This is probably also observable in...

Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/998

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bad results for failing standalone expectations on compound data ","articleBody":"**Describe the bug**\r\nWhen running standalone expectations in a single session and having more than one failing expectation, the results returned by report are wrong.\r\nThis is probably also observable in regular run,when running more than one cursor/object comparison in single test.\r\n\r\n\r\n**Provide version info**\r\nutPLSQL v3.1.8\r\n\r\n**To Reproduce**\r\n```sql\r\nclear screen\r\nset serverout on\r\ndeclare\r\n  l_actual   sys_refcursor;\r\n  l_expected sys_refcursor;\r\nbegin\r\n  open l_actual   for select rownum rn from dual connect by level \u003c 5;\r\n  open l_expected for select rownum rn from dual connect by level = 1;\r\n  ut.expect(l_actual).to_equal(l_expected);\r\n  open l_actual   for select rownum rn from dual connect by level \u003c 3;\r\n  open l_expected for select * from (select rownum rn from dual connect by level \u003c 3) order by 1 desc;\r\n  ut.expect(l_actual).to_equal(l_expected);\r\nend;\r\n/\r\nrollback;\r\n```\r\n\r\nThis produces output:\r\n```\r\nFAILURE\r\n  Actual: refcursor [ count = 4 ] was expected to equal: refcursor [ count = 1 ]\r\n  Diff:\r\n  Rows: [ 3 differences ]\r\n    Row No. 2 - Extra:    \u003cRN\u003e2\u003c/RN\u003e\r\n    Row No. 3 - Extra:    \u003cRN\u003e3\u003c/RN\u003e\r\n    Row No. 4 - Extra:    \u003cRN\u003e4\u003c/RN\u003e\r\n  at \"anonymous block\", line 7\r\nFAILURE\r\n  Actual: refcursor [ count = 2 ] was expected to equal: refcursor [ count = 2 ]\r\n  Diff:\r\n  Rows: [ 2 differences ]\r\n    Row No. 1 - Actual:   \u003cRN\u003e1\u003c/RN\u003e\r\n    Row No. 1 - Expected: \u003cRN\u003e2\u003c/RN\u003e\r\n    Row No. 2 - Actual:   \u003cRN\u003e2\u003c/RN\u003e\r\n    Row No. 2 - Expected: \u003cRN\u003e1\u003c/RN\u003e\r\n    Row No. 2 - Extra:    \u003cRN\u003e2\u003c/RN\u003e\r\n    Row No. 3 - Extra:    \u003cRN\u003e3\u003c/RN\u003e\r\n    Row No. 4 - Extra:    \u003cRN\u003e4\u003c/RN\u003e\r\n  at \"anonymous block\", line 10\r\n```\r\n\r\nHowever adding a commit or rollback in between expectations fixes the issue.\r\n\r\n```sql\r\nclear screen\r\nset serverout on\r\ndeclare\r\n  l_actual   sys_refcursor;\r\n  l_expected sys_refcursor;\r\nbegin\r\n  open l_actual   for select rownum rn from dual connect by level \u003c 5;\r\n  open l_expected for select rownum rn from dual connect by level = 1;\r\n  ut.expect(l_actual).to_equal(l_expected);\r\n  rollback;\r\n  open l_actual   for select rownum rn from dual connect by level \u003c 3;\r\n  open l_expected for select * from (select rownum rn from dual connect by level \u003c 3) order by 1 desc;\r\n  ut.expect(l_actual).to_equal(l_expected);\r\nend;\r\n/\r\nrollback;\r\n```\r\n\r\n```\r\nFAILURE\r\n  Actual: refcursor [ count = 4 ] was expected to equal: refcursor [ count = 1 ]\r\n  Diff:\r\n  Rows: [ 3 differences ]\r\n    Row No. 2 - Extra:    \u003cRN\u003e2\u003c/RN\u003e\r\n    Row No. 3 - Extra:    \u003cRN\u003e3\u003c/RN\u003e\r\n    Row No. 4 - Extra:    \u003cRN\u003e4\u003c/RN\u003e\r\n  at \"anonymous block\", line 7\r\nFAILURE\r\n  Actual: refcursor [ count = 2 ] was expected to equal: refcursor [ count = 2 ]\r\n  Diff:\r\n  Rows: [ 2 differences ]\r\n    Row No. 1 - Actual:   \u003cRN\u003e1\u003c/RN\u003e\r\n    Row No. 1 - Expected: \u003cRN\u003e2\u003c/RN\u003e\r\n    Row No. 2 - Actual:   \u003cRN\u003e2\u003c/RN\u003e\r\n    Row No. 2 - Expected: \u003cRN\u003e1\u003c/RN\u003e\r\n  at \"anonymous block\", line 11\r\n```\r\n\r\n**Expected behavior**\r\nDiff reports should always provide valid outputs.\r\n\r\nTo fix this, we can delete the diff table as part of diff cleanup.\r\n","author":{"url":"https://github.com/jgebal","@type":"Person","name":"jgebal"},"datePublished":"2019-09-22T10:54:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/998/utPLSQL/issues/998"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8c3230e4-a3d0-d9b0-1b38-6c71347765e1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD3CE:146AFC:7E4DDA:B1839F:6A638940
html-safe-nonce7c407f6b619eecca93ed8fb7509aae2392c92f39191792864eead998ff74f40d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0NFOjE0NkFGQzo3RTREREE6QjE4MzlGOjZBNjM4OTQwIiwidmlzaXRvcl9pZCI6IjQ1MTE1NTMzNDU5NDY4ODAzMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace05ca7a68bd9de28a24ecd43c95f061c3bfe888e668bd110eb43e595457fd7d0
hovercard-subject-tagissue:496763294
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL/998/issue_layout
twitter:imagehttps://opengraph.githubassets.com/589ee9188431a27abe08c4990f446ee214521bbcf0abd8bc16ec1d68279c38c7/utPLSQL/utPLSQL/issues/998
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/589ee9188431a27abe08c4990f446ee214521bbcf0abd8bc16ec1d68279c38c7/utPLSQL/utPLSQL/issues/998
og:image:altDescribe the bug When running standalone expectations in a single session and having more than one failing expectation, the results returned by report are wrong. This is probably also observable in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejgebal
hostnamegithub.com
expected-hostnamegithub.com
None4ca676e17c4da4532dc68541e9fc874034ae840c26b5f34da7f1c42d9a600659
turbo-cache-controlno-preview
go-importgithub.com/utPLSQL/utPLSQL git https://github.com/utPLSQL/utPLSQL.git
octolytics-dimension-user_id15661281
octolytics-dimension-user_loginutPLSQL
octolytics-dimension-repository_id50728220
octolytics-dimension-repository_nwoutPLSQL/utPLSQL
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id50728220
octolytics-dimension-repository_network_root_nwoutPLSQL/utPLSQL
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3a0a9f049e072eb8e5795dfddcefdba9e277501d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/utPLSQL/utPLSQL/issues/998#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FutPLSQL%2FutPLSQL%2Fissues%2F998
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FutPLSQL%2FutPLSQL%2Fissues%2F998
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=utPLSQL%2FutPLSQL
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/998
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/998
Reloadhttps://github.com/utPLSQL/utPLSQL/issues/998
Please reload this pagehttps://github.com/utPLSQL/utPLSQL/issues/998
utPLSQL https://github.com/utPLSQL
utPLSQLhttps://github.com/utPLSQL/utPLSQL
Notifications https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Fork 188 https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Star 619 https://github.com/login?return_to=%2FutPLSQL%2FutPLSQL
Code https://github.com/utPLSQL/utPLSQL
Issues 12 https://github.com/utPLSQL/utPLSQL/issues
Pull requests 0 https://github.com/utPLSQL/utPLSQL/pulls
Discussions https://github.com/utPLSQL/utPLSQL/discussions
Actions https://github.com/utPLSQL/utPLSQL/actions
Projects https://github.com/utPLSQL/utPLSQL/projects
Security and quality 0 https://github.com/utPLSQL/utPLSQL/security
Insights https://github.com/utPLSQL/utPLSQL/pulse
Code https://github.com/utPLSQL/utPLSQL
Issues https://github.com/utPLSQL/utPLSQL/issues
Pull requests https://github.com/utPLSQL/utPLSQL/pulls
Discussions https://github.com/utPLSQL/utPLSQL/discussions
Actions https://github.com/utPLSQL/utPLSQL/actions
Projects https://github.com/utPLSQL/utPLSQL/projects
Security and quality https://github.com/utPLSQL/utPLSQL/security
Insights https://github.com/utPLSQL/utPLSQL/pulse
#999https://github.com/utPLSQL/utPLSQL/pull/999
Bad results for failing standalone expectations on compound data https://github.com/utPLSQL/utPLSQL/issues/998#top
#999https://github.com/utPLSQL/utPLSQL/pull/999
bughttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22bug%22
v3.1.9https://github.com/utPLSQL/utPLSQL/milestone/17
https://github.com/jgebal
jgebalhttps://github.com/jgebal
on Sep 22, 2019https://github.com/utPLSQL/utPLSQL/issues/998#issue-496763294
bughttps://github.com/utPLSQL/utPLSQL/issues?q=state%3Aopen%20label%3A%22bug%22
v3.1.9https://github.com/utPLSQL/utPLSQL/milestone/17
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.