Title: Nested Contexts to allow easier hierarchical tests · Issue #938 · utPLSQL/utPLSQL · GitHub
Open Graph Title: Nested Contexts to allow easier hierarchical tests · Issue #938 · utPLSQL/utPLSQL
X Title: Nested Contexts to allow easier hierarchical tests · Issue #938 · utPLSQL/utPLSQL
Description: To make it easier to structure the tests (as described in this video by Kevlin Henney: https://www.youtube.com/watch?v=tWn8RA_DEic) it would be great to allow nesting of contexts: create or replace package queue_spec as -- %suite(Queue S...
Open Graph Description: To make it easier to structure the tests (as described in this video by Kevlin Henney: https://www.youtube.com/watch?v=tWn8RA_DEic) it would be great to allow nesting of contexts: create or replace...
X Description: To make it easier to structure the tests (as described in this video by Kevlin Henney: https://www.youtube.com/watch?v=tWn8RA_DEic) it would be great to allow nesting of contexts: create or replace...
Opengraph URL: https://github.com/utPLSQL/utPLSQL/issues/938
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nested Contexts to allow easier hierarchical tests","articleBody":"To make it easier to structure the tests (as described in this video by Kevlin Henney: https://www.youtube.com/watch?v=tWn8RA_DEic) it would be great to allow nesting of contexts:\r\n\r\n```sql\r\ncreate or replace package queue_spec as\r\n -- %suite(Queue Spec)\r\n \r\n -- %context(a_not_empty_queue)\r\n \r\n -- %context(that_is_not_full)\r\n -- %test\r\n procedure becomes_longer_when_non_null_value_enqueued;\r\n -- %test\r\n procedure becomes_full_when_enqueued_up_to_capacity;\r\n -- %endcontext\r\n \r\n -- %context(that_is_full)\r\n -- %test\r\n procedure ignores_further_enqueued_values;\r\n -- %test\r\n procedure becomes_non_full_when_dequeued;\r\n -- %endcontext\r\n\r\n -- %test\r\n procedure dequeues_values_in_order_enqueued;\r\n\r\n -- %endcontext\r\nend;\r\n```\r\nLeading to\r\n```\r\nQueue Spec\r\n a_not_empty_queue\r\n that_is_not_full\r\n becomes_longer_when_non_null_value_enqueued [SUCCESS]\r\n becomes_full_when_enqueued_up_to_capacity [SUCCESS]\r\n that_is_full\r\n ignores_further_enqueued_values [SUCCESS]\r\n becomes_non_full_when_dequeued [SUCCESS]\r\n dequeues_values_in_order_enqueued [SUCCESS]\r\n```\r\n\r\n**What to do in case of missing endcontext?**\r\nWrite a warning","author":{"url":"https://github.com/pesse","@type":"Person","name":"pesse"},"datePublished":"2019-06-14T12:46:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/938/utPLSQL/issues/938"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dc1620e0-8021-6678-16e6-99f5c54f4f30 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EACE:13A7CA:B60B16:1046077:6A638A37 |
| html-safe-nonce | 08d216662d3cb48897b0ad7c70129e20674a4c4e8073563f8adc87a01f78334f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUNFOjEzQTdDQTpCNjBCMTY6MTA0NjA3Nzo2QTYzOEEzNyIsInZpc2l0b3JfaWQiOiIxNDg3ODM2MDI5NTY3MzM5MDYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 09292dca5ccf1024543374ad53e2fb2a212f3e2cbfc1c11a49ed702724be9fb5 |
| hovercard-subject-tag | issue:456230911 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/utPLSQL/utPLSQL/938/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c529bcf953fce0e386291d27dced4c4e1791949c71f3985e5a2bf1aef049dff4/utPLSQL/utPLSQL/issues/938 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c529bcf953fce0e386291d27dced4c4e1791949c71f3985e5a2bf1aef049dff4/utPLSQL/utPLSQL/issues/938 |
| og:image:alt | To make it easier to structure the tests (as described in this video by Kevlin Henney: https://www.youtube.com/watch?v=tWn8RA_DEic) it would be great to allow nesting of contexts: create or replace... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pesse |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ca676e17c4da4532dc68541e9fc874034ae840c26b5f34da7f1c42d9a600659 |
| turbo-cache-control | no-preview |
| go-import | github.com/utPLSQL/utPLSQL git https://github.com/utPLSQL/utPLSQL.git |
| octolytics-dimension-user_id | 15661281 |
| octolytics-dimension-user_login | utPLSQL |
| octolytics-dimension-repository_id | 50728220 |
| octolytics-dimension-repository_nwo | utPLSQL/utPLSQL |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 50728220 |
| octolytics-dimension-repository_network_root_nwo | utPLSQL/utPLSQL |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3a0a9f049e072eb8e5795dfddcefdba9e277501d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width