Title: Exception in Error message with saving test generation report when an empty test class is generated · Issue #1425 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Exception in Error message with saving test generation report when an empty test class is generated · Issue #1425 · UnitTestBot/UTBotJava
X Title: Exception in Error message with saving test generation report when an empty test class is generated · Issue #1425 · UnitTestBot/UTBotJava
Description: Description Exception in Error message with saving SARIF report when an empty test class is generated (error report is only). To Reproduce Run a project with JDK 11 in IntelliJ Idea Install exact plugin version Set Fuzzing only mode Gene...
Open Graph Description: Description Exception in Error message with saving SARIF report when an empty test class is generated (error report is only). To Reproduce Run a project with JDK 11 in IntelliJ Idea Install exact p...
X Description: Description Exception in Error message with saving SARIF report when an empty test class is generated (error report is only). To Reproduce Run a project with JDK 11 in IntelliJ Idea Install exact p...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1425
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception in Error message with saving test generation report when an empty test class is generated ","articleBody":"**Description**\r\n\r\nException in Error message with saving SARIF report when an empty test class is generated (error report is only).\r\n\r\n**To Reproduce**\r\n\r\n1. Run a project with JDK 11 in IntelliJ Idea \r\n2. Install [exact plugin version](https://github.com/UnitTestBot/UTBotJava/actions/runs/3538142501)\r\n3. Set Fuzzing only mode\r\n4. Generate tests for the following Java class:\r\n\r\n```java\r\npublic class Lambda {\r\n Function\u003cString, Integer\u003e returnLambda(int buffer) {\r\n return s -\u003e s.length() + buffer;\r\n }\r\n}\r\n```\r\n\r\n**Expected behavior**\r\n\r\nError message should not be shown - especially with exception stack trace.\r\n\r\n**Actual behavior**\r\n\r\nError message `Failed to save tests report` is shown with `java.lang.IllegalStateException No executables found in test report` stack trace.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n\r\n\r\n~~~java\r\nCannot save tests generation report: error occurred 'No executables found in test report, reason: java.lang.IllegalStateException: No executables found in test report \r\n\r\nat org.utbot.framework.codegen.reports.TestsGenerationReport.getClassUnderTest(TestsGenerationReport.kt:24) \r\nat org.utbot.framework.codegen.reports.TestsGenerationReport.toString(TestsGenerationReport.kt:76) \r\nat org.utbot.framework.process.EngineMainKt$setup$10.invoke(EngineMain.kt:205) \r\nat org.utbot.framework.process.EngineMainKt$setup$10.invoke(EngineMain.kt:193) \r\nat org.utbot.rd.CallsSynchronizer$measureExecutionForTermination$1$1.invoke(ClientProcessUtil.kt:84) \r\nat org.utbot.rd.CallsSynchronizer.measureExecutionForTermination(ClientProcessUtil.kt:75) \r\nat org.utbot.rd.CallsSynchronizer$measureExecutionForTermination$1.invoke(ClientProcessUtil.kt:83) \r\nat com.jetbrains.rd.framework.IRdEndpoint$set$1.invoke(TaskInterfaces.kt:182) \r\nat com.jetbrains.rd.framework.IRdEndpoint$set$1.invoke(TaskInterfaces.kt:182) \r\nat com.jetbrains.rd.framework.impl.RdCall.onWireReceived(RdTask.kt:360) \r\nat com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:57) \r\nat com.jetbrains.rd.framework.MessageBroker$invoke$2$2.invoke(MessageBroker.kt:56) \r\nat com.jetbrains.rd.framework.impl.ProtocolContexts.readMessageContextAndInvoke(ProtocolContexts.kt:148) \r\nat com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:56) \r\nat com.jetbrains.rd.framework.MessageBroker$invoke$2.invoke(MessageBroker.kt:54) \r\nat com.jetbrains.rd.util.threading.SingleThreadSchedulerBase.queue$lambda-3(SingleThreadScheduler.kt:41) \r\nat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) \r\nat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) \r\nat java.base/java.lang.Thread.run(Thread.java:829)\r\n\r\n~~~\r\n\r\n**Environment**\r\n\r\nWindows 10 Pro\r\nIntelliJ IDEA 2022.2.3\r\nGradle project\r\nJDK 11\r\n\r\n**Additional context**\r\n\r\nThere was an error in concrete executor that led to error-test only - and in fact empty test class.\r\nIt is fixed already. SO please use the following plugin version:\r\nhttps://github.com/UnitTestBot/UTBotJava/actions/runs/3538142501","author":{"url":"https://github.com/alisevych","@type":"Person","name":"alisevych"},"datePublished":"2022-11-25T09:50:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1425/UTBotJava/issues/1425"}
| 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:337fe8df-fa43-1e3f-dc60-9d24a7ac18b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 93C6:24613:4A1326:5C42F7:698FFADF |
| html-safe-nonce | 6bc878c2d2bbab8ed47338698524333d8bb8b0adc96484254c3a9be5bf5bcd69 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0M2OjI0NjEzOjRBMTMyNjo1QzQyRjc6Njk4RkZBREYiLCJ2aXNpdG9yX2lkIjoiMjc2NTI4MjQwNTczNjUxMjIyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7dfb94525166b67da754d25dde3d9e39a446353085267db3f03e821bd5673af2 |
| hovercard-subject-tag | issue:1464285027 |
| 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/1425/issue_layout |
| twitter:image | https://opengraph.githubassets.com/05ab26c3975fbd5a1683913067ab507a2b36c86e1af9271c0af11c68f5afe313/UnitTestBot/UTBotJava/issues/1425 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/05ab26c3975fbd5a1683913067ab507a2b36c86e1af9271c0af11c68f5afe313/UnitTestBot/UTBotJava/issues/1425 |
| og:image:alt | Description Exception in Error message with saving SARIF report when an empty test class is generated (error report is only). To Reproduce Run a project with JDK 11 in IntelliJ Idea Install exact p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alisevych |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width