Title: App Engine testrunner doesn't behave like docs suggest · Issue #500 · GoogleCloudPlatform/python-docs-samples · GitHub
Open Graph Title: App Engine testrunner doesn't behave like docs suggest · Issue #500 · GoogleCloudPlatform/python-docs-samples
X Title: App Engine testrunner doesn't behave like docs suggest · Issue #500 · GoogleCloudPlatform/python-docs-samples
Description: This is relatively minor - just something I noticed relating to /appengine/standard/localtesting/runner.py The App Engine Setting up a testing framework documentation states: "Test files follow the convention of having test prefixed to t...
Open Graph Description: This is relatively minor - just something I noticed relating to /appengine/standard/localtesting/runner.py The App Engine Setting up a testing framework documentation states: "Test files follow the...
X Description: This is relatively minor - just something I noticed relating to /appengine/standard/localtesting/runner.py The App Engine Setting up a testing framework documentation states: "Test files follo...
Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/500
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"App Engine testrunner doesn't behave like docs suggest","articleBody":"This is relatively minor - just something I noticed relating to [/appengine/standard/localtesting/runner.py](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/localtesting/runner.py)\n\nThe App Engine [Setting up a testing framework](https://cloud.google.com/appengine/docs/python/tools/localunittesting#Python_Setting_up_a_testing_framework) documentation states: \"Test files follow the convention of having **test** prefixed to their name.\"\n\nHowever, 1fe6ae4 changed the behaviour to look for files **ending** with **_test.py**\n\nThis makes sense if you're trying to run the sample tests, but not if you've used the testrunner on another project and named your test modules according to what has up until now been the default expectation, being test files with test **prefixed**. If you were to update your testrunner code to the latest and greatest you'll now find none of your tests being run. That is **if** you notice - assuming most people don't set up their builds to fail on:\n\n```\n----------------------------------------------------------------------\nRan 0 tests in 0.000s\n\nOK\n```\n\nSo, I would argue that it would be better to stick with the default (discover test files prefixed with test) and instead rename the sample tests.\n\nTL;DR;\nminor mismatch with documentation, has potential to cause havoc for people that have used the testrunner and who update it\n","author":{"url":"https://github.com/maltem-za","@type":"Person","name":"maltem-za"},"datePublished":"2016-09-06T15:27:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/500/python-docs-samples/issues/500"}
| 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:70b8fcdc-46f8-b6d4-c0fe-83e4c1458877 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E03E:1B6F9B:8027A8:AFA230:6A4DB39A |
| html-safe-nonce | 3f99b616d1e9274e7ea42bf9c2bec17f23f54d041dd6dedac31922a9de4d1404 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDNFOjFCNkY5Qjo4MDI3QTg6QUZBMjMwOjZBNERCMzlBIiwidmlzaXRvcl9pZCI6IjE0OTQzNjgyNDUzMjYzOTQyNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0620513db9418218081d85bd0da37ef8b642a13164246ce1c198139eec6bfcc9 |
| hovercard-subject-tag | issue:175277175 |
| 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/GoogleCloudPlatform/python-docs-samples/500/issue_layout |
| twitter:image | https://opengraph.githubassets.com/02db06573fa1c71d6341bdf913dc97d1720dbe072f55363e2a79dc07a00afc28/GoogleCloudPlatform/python-docs-samples/issues/500 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/02db06573fa1c71d6341bdf913dc97d1720dbe072f55363e2a79dc07a00afc28/GoogleCloudPlatform/python-docs-samples/issues/500 |
| og:image:alt | This is relatively minor - just something I noticed relating to /appengine/standard/localtesting/runner.py The App Engine Setting up a testing framework documentation states: "Test files follow the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maltem-za |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git |
| octolytics-dimension-user_id | 2810941 |
| octolytics-dimension-user_login | GoogleCloudPlatform |
| octolytics-dimension-repository_id | 35065876 |
| octolytics-dimension-repository_nwo | GoogleCloudPlatform/python-docs-samples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35065876 |
| octolytics-dimension-repository_network_root_nwo | GoogleCloudPlatform/python-docs-samples |
| 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 | 32f7b614aca06e6bbd89842b1370df1328264f68 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width