Title: Existing test file without test class obstruct generation · Issue #160 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Existing test file without test class obstruct generation · Issue #160 · UnitTestBot/UTBotJava
X Title: Existing test file without test class obstruct generation · Issue #160 · UnitTestBot/UTBotJava
Description: Description If a test file with some name has already been created, but there is no test class in it, generating tests in this file will not be finished successfully. To Reproduce Create class A Create file ATest without class ATest in s...
Open Graph Description: Description If a test file with some name has already been created, but there is no test class in it, generating tests in this file will not be finished successfully. To Reproduce Create class A Cr...
X Description: Description If a test file with some name has already been created, but there is no test class in it, generating tests in this file will not be finished successfully. To Reproduce Create class A Cr...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/160
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Existing test file without test class obstruct generation","articleBody":"**Description**\r\n\r\nIf a test file with some name has already been created, but there is no test class in it, generating tests in this file will not be finished successfully.\r\n\r\n**To Reproduce**\r\n\r\n- Create class A\r\n- Create file ATest without class ATest in similar package in test root\r\n- Generate tests for A\r\n\r\n**Expected behavior**\r\n\r\nTests are generated successfully. The content of ATest file is overwritten with generated test code.\r\n\r\n**Actual behavior**\r\n\r\nTest generation fails with error popup: \"Failed to Create Class\"\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/EgorkaKulikov","@type":"Person","name":"EgorkaKulikov"},"datePublished":"2022-06-07T07:40:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/160/UTBotJava/issues/160"}
| 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:ac4690b4-13f4-178b-044f-c4b52be49118 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A28:4D7D1:2D8DDEC:3D97359:698DBCDD |
| html-safe-nonce | cb5653701ff726763a4f1711cba11a8bf353e5c3b6330276069ad360548164da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTI4OjREN0QxOjJEOERERUM6M0Q5NzM1OTo2OThEQkNERCIsInZpc2l0b3JfaWQiOiI0Nzk2ODYxODQyOTQ4MjA5ODg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bdecf1d277dabe8129d887e7bfb1ffc4d5b1c1ffecd89b22c1bcd94688186324 |
| hovercard-subject-tag | issue:1262861930 |
| 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/UnitTestBot/UTBotJava/160/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f82bcf77dae21861a82933d4c9710ea86243384a8651b3652a75ec0c28e6a799/UnitTestBot/UTBotJava/issues/160 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f82bcf77dae21861a82933d4c9710ea86243384a8651b3652a75ec0c28e6a799/UnitTestBot/UTBotJava/issues/160 |
| og:image:alt | Description If a test file with some name has already been created, but there is no test class in it, generating tests in this file will not be finished successfully. To Reproduce Create class A Cr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EgorkaKulikov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2457fd9a1b17ca7f38c3c2653895ccb2e0dd04f18f77446a21354e9bc4b7902f |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 878672b82363fd98fbdc5bd0edb68e572c8a8d9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width