Title: Sarif file not found · Issue #403 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Sarif file not found · Issue #403 · UnitTestBot/UTBotJava
X Title: Sarif file not found · Issue #403 · UnitTestBot/UTBotJava
Description: Description There is an exception due to the absence of the .sarif file during test report generation. That is To Reproduce Steps to reproduce the behavior: Example: Create clean project in IDEA Add such class to the project public class...
Open Graph Description: Description There is an exception due to the absence of the .sarif file during test report generation. That is To Reproduce Steps to reproduce the behavior: Example: Create clean project in IDEA Ad...
X Description: Description There is an exception due to the absence of the .sarif file during test report generation. That is To Reproduce Steps to reproduce the behavior: Example: Create clean project in IDEA Ad...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/403
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sarif file not found","articleBody":"**Description**\r\n\r\nThere is an exception due to the absence of the .sarif file during test report generation.\r\nThat is \r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behavior:\r\n\r\n_Example:_\r\n\r\n1. Create clean project in IDEA\r\n2. Add such class to the project\r\n```\r\npublic class SimpleString {\r\n private String str = \"hello\";\r\n\r\n public String getStr() {\r\n return str;\r\n }\r\n}\r\n```\r\n3. Use plugin to generate tests\r\n\r\n**Expected behavior**\r\n\r\nTests are supposed to be generated.\r\n\r\n**Actual behavior**\r\n\r\nNo tests, no sarif, just an exception in plugin.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n~~~\r\njava.io.FileNotFoundException: C:\\Users\\vWX1143085\\IdeaProjects\\idsfds\\src\\test\\resources\\utbot-sarif-report\\idsfdsReport.sarif (The system cannot find the path specified)\r\n\tat java.base/java.io.FileOutputStream.open0(Native Method)\r\n\tat java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)\r\n\tat java.base/java.io.FileOutputStream.\u003cinit\u003e(FileOutputStream.java:237)\r\n\tat java.base/java.io.FileOutputStream.\u003cinit\u003e(FileOutputStream.java:187)\r\n\tat kotlin.io.FilesKt__FileReadWriteKt.writeBytes(FileReadWrite.kt:108)\r\n\tat kotlin.io.FilesKt__FileReadWriteKt.writeText(FileReadWrite.kt:134)\r\n\tat kotlin.io.FilesKt__FileReadWriteKt.writeText$default(FileReadWrite.kt:134)\r\n\tat org.utbot.intellij.plugin.generator.TestGenerator.mergeSarifReports(TestGenerator.kt:100)\r\n\tat org.utbot.intellij.plugin.generator.TestGenerator.generateTestsInternal(TestGenerator.kt:87)\r\n\tat org.utbot.intellij.plugin.generator.TestGenerator.generateTests(TestGenerator.kt:62)\r\n\tat org.utbot.intellij.plugin.ui.UtTestsDialogProcessor$createTests$2$1$run$$inlined$invokeLater$1.run(actions.kt:61)\r\n\tat com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:322)\r\n\tat com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:84)\r\n\tat com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:132)\r\n\tat com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)\r\n\tat com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:188)\r\n\tat java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)\r\n\tat java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)\r\n\tat java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)\r\n\tat java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)\r\n\tat java.base/java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)\r\n\tat java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)\r\n\tat com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:967)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839)\r\n\tat com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:450)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744)\r\n\tat com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:449)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:497)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)\r\n\tat java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)\r\n~~~\r\n\r\n**Environment**\r\n\r\nJava 8, fresh project.\r\n\r\n**Additional context**\r\n\r\nThe issue is probably within the logic of [Denis's fix](https://github.com/UnitTestBot/UTBotJava/commit/d4f95c10871f3cd6029af120a5011154b917e569)\r\n","author":{"url":"https://github.com/nikitavlaev","@type":"Person","name":"nikitavlaev"},"datePublished":"2022-07-04T16:22:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/403/UTBotJava/issues/403"}
| 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:30b15797-9dd2-915c-0141-34703379f4da |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C412:1D7E:1227315:18F5779:698DBD1C |
| html-safe-nonce | 31fadd0668c03c4865b711357291a877e0870e2bc17a8895566015ea79df24fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDEyOjFEN0U6MTIyNzMxNToxOEY1Nzc5OjY5OERCRDFDIiwidmlzaXRvcl9pZCI6IjM2OTg2NTgxNjE1NjI4NjA4MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 50818392b084b9a88b7c2434a22156c7c2651cd18d358250367cb211cfa9f53e |
| hovercard-subject-tag | issue:1293362892 |
| 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/403/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a9347e4c52997ff968b542a5d410185ea239c85ed1c1adc089ed0ed9ab76652e/UnitTestBot/UTBotJava/issues/403 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a9347e4c52997ff968b542a5d410185ea239c85ed1c1adc089ed0ed9ab76652e/UnitTestBot/UTBotJava/issues/403 |
| og:image:alt | Description There is an exception due to the absence of the .sarif file during test report generation. That is To Reproduce Steps to reproduce the behavior: Example: Create clean project in IDEA Ad... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nikitavlaev |
| 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