Title: Update time management of python test generation by tamarinvs19 · Pull Request #1893 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Update time management of python test generation by tamarinvs19 · Pull Request #1893 · UnitTestBot/UTBotJava
X Title: Update time management of python test generation by tamarinvs19 · Pull Request #1893 · UnitTestBot/UTBotJava
Description: Description New test generation strategy is: If function is fully annotated and type inference algorithm cannot infer type we use all time from UI-settings to fuzzing and test generation; If type inference and infer type we try to fuzz tests for one annotation with the following restrictions: max 150 successfully executable tests (with or without exeception) max 10 invalid tests (when we generate incorrect arguments and have TypeError or AttributeError; or we cannot generate any valid representative of the inferred type) and 5 additional tests (as a precaution) until time limit In future we can modify strategies and add it to UI. For example, wait max coverage. Fixes #1874 Fixes #1831 How to test Manual tests Fully annotated function For example, def div(a: int, b: int) : return a / b Expected: two tests (valid and with ZeroDivisionError), test generation process lasted all time from UI-settings Or, def str_test(x: str): if x[0] == 'b': if x[1] == 'a': if x[2] == 'd': return 'Very bad!' Expected: all time generation, one test with x = 'ba' or longer (with timeout 60s) and all covered branches with timeout 180s Without or partially annotated function For example, def str_test(x): if x[0] == 'b': if x[1] == 'a': if x[2] == 'd': return 'Very bad!' Expected: all time generation, one test with x = 'b', no one with 'ba' and longer (regardless of timeout) Self-check list Check off the item if the statement is true. Hint: [x] is a marked item. Please do not delete the list or its items. I've set the proper labels for my PR (at least, for category and component). PR title and description are clear and intelligible. I've added enough comments to my code, particularly in hard-to-understand areas. The functionality I've repaired, changed or added is covered with automated tests. Manual tests have been provided optionally. The documentation for the functionality I've been working on is up-to-date.
Open Graph Description: Description New test generation strategy is: If function is fully annotated and type inference algorithm cannot infer type we use all time from UI-settings to fuzzing and test generation; If type ...
X Description: Description New test generation strategy is: If function is fully annotated and type inference algorithm cannot infer type we use all time from UI-settings to fuzzing and test generation; If type ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/1893
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:971a52d3-232a-9419-492a-88993a44980f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A6B0:3BACEA:45D8E4:5CA970:698E53F7 |
| html-safe-nonce | f8efe658b45d0825271821a1f6727a03aba2df2f841f694ee03910cd707db856 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkIwOjNCQUNFQTo0NUQ4RTQ6NUNBOTcwOjY5OEU1M0Y3IiwidmlzaXRvcl9pZCI6Ijc5NzU4NTY5Njc0MDU5NDk5NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8e1ab5561fa4fa8b74b365b620f37b99a5ea8e2fd34d7f2847c2f59176333428 |
| hovercard-subject-tag | pull_request:1262598399 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/UnitTestBot/UTBotJava/pull/1893/files |
| twitter:image | https://avatars.githubusercontent.com/u/23080942?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/23080942?s=400&v=4 |
| og:image:alt | Description New test generation strategy is: If function is fully annotated and type inference algorithm cannot infer type we use all time from UI-settings to fuzzing and test generation; If type ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e08b85f0035d49bc4c22868f70a4d30fb8c2a777936895c37e78df095242ddc |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9416d07f3607b074b276ccc81546278f89608a08 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width