Title: run subtests flagged as `only` also when parent is not flagged · Issue #51261 · nodejs/node · GitHub
Open Graph Title: run subtests flagged as `only` also when parent is not flagged · Issue #51261 · nodejs/node
X Title: run subtests flagged as `only` also when parent is not flagged · Issue #51261 · nodejs/node
Description: Version No response Platform No response Subsystem No response What steps will reproduce the bug? actually not a bug, but a DX improvement How often does it reproduce? Is there a required condition? I'd like the test named want to run on...
Open Graph Description: Version No response Platform No response Subsystem No response What steps will reproduce the bug? actually not a bug, but a DX improvement How often does it reproduce? Is there a required condition...
X Description: Version No response Platform No response Subsystem No response What steps will reproduce the bug? actually not a bug, but a DX improvement How often does it reproduce? Is there a required condition...
Opengraph URL: https://github.com/nodejs/node/issues/51261
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"run subtests flagged as `only` also when parent is not flagged","articleBody":"### Version\r\n\r\n_No response_\r\n\r\n### Platform\r\n\r\n_No response_\r\n\r\n### Subsystem\r\n\r\n_No response_\r\n\r\n### What steps will reproduce the bug?\r\n\r\nactually not a bug, but a DX improvement\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\nI'd like the test named `want to run only this` to run, but to do so also the parent must have the `{onyl:true}` option\r\n\r\n```js\r\ntest('want to run the subtests here', async (t) => {\r\n t.test('want to run only this', { only: true });\r\n t.test('dont run that');\r\n});\r\n\r\ntest('this test is not run');\r\n```\r\n\r\n\r\n### What is the expected behavior? Why is that the expected behavior?\r\n\r\nThe parents tests should run as well, as they were flagged\r\n\r\n### What do you see instead?\r\n\r\nno tests run\r\n\r\n### Additional information\r\n\r\n_No response_","author":{"url":"https://github.com/simone-sanfratello","@type":"Person","name":"simone-sanfratello"},"datePublished":"2023-12-22T15:51:50Z","url":"https://github.com/nodejs/node/issues/51261"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:f0b58f21-8d6e-8286-e0b2-2038d369a7e1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B626:25866C:3051427:3FA2900:6B034D16 |
| html-safe-nonce | db1580c7e26f57bae1c2f7ef276bfd341795a7dc60db4d5171be1970784f36af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjI2OjI1ODY2QzozMDUxNDI3OjNGQTI5MDA6NkIwMzREMTYiLCJ2aXNpdG9yX2lkIjoiODIxMjQ0Mzg3OTQyNTkyMDI3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a0399639444dc29f9984b2c7299bdb4fc61ca3668529ede247a359740d1a38d1 |
| hovercard-subject-tag | issue:2054104269 |
| 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/nodejs/node/51261/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8265ae42b0af3df63d06e33fd2b2e37b66245c7dd7eb5a6aa7d2725e1df87d12/nodejs/node/issues/51261 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8265ae42b0af3df63d06e33fd2b2e37b66245c7dd7eb5a6aa7d2725e1df87d12/nodejs/node/issues/51261 |
| og:image:alt | Version No response Platform No response Subsystem No response What steps will reproduce the bug? actually not a bug, but a DX improvement How often does it reproduce? Is there a required condition... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | simone-sanfratello |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width