GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Sarif file not found · Issue #403 · UnitTestBot/UTBotJava

Sarif file not found #403

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Sarif file not found#403
Copy link
Assignees
alisevychmmvpm
Labels
ctg-bugIssue is a bugIssue is a bugstatus-wont-fixThis will not be worked onThis will not be worked on

Description

@nikitavlaev
nikitavlaev
opened on Jul 4, 2022
Issue body actions

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:

  1. Create clean project in IDEA
  2. Add such class to the project
public class SimpleString {
    private String str = "hello";

    public String getStr() {
        return str;
    }
}
  1. Use plugin to generate tests

Expected behavior

Tests are supposed to be generated.

Actual behavior

No tests, no sarif, just an exception in plugin.

Visual proofs (screenshots, logs, images)

java.io.FileNotFoundException: C:\Users\vWX1143085\IdeaProjects\idsfds\src\test\resources\utbot-sarif-report\idsfdsReport.sarif (The system cannot find the path specified)
	at java.base/java.io.FileOutputStream.open0(Native Method)
	at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)
	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:237)
	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:187)
	at kotlin.io.FilesKt__FileReadWriteKt.writeBytes(FileReadWrite.kt:108)
	at kotlin.io.FilesKt__FileReadWriteKt.writeText(FileReadWrite.kt:134)
	at kotlin.io.FilesKt__FileReadWriteKt.writeText$default(FileReadWrite.kt:134)
	at org.utbot.intellij.plugin.generator.TestGenerator.mergeSarifReports(TestGenerator.kt:100)
	at org.utbot.intellij.plugin.generator.TestGenerator.generateTestsInternal(TestGenerator.kt:87)
	at org.utbot.intellij.plugin.generator.TestGenerator.generateTests(TestGenerator.kt:62)
	at org.utbot.intellij.plugin.ui.UtTestsDialogProcessor$createTests$2$1$run$$inlined$invokeLater$1.run(actions.kt:61)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802)
	at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:322)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:84)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:132)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:47)
	at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:188)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:967)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:450)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:744)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:449)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:802)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:497)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Environment

Java 8, fresh project.

Additional context

The issue is probably within the logic of Denis's fix

Activity

  1. nikitavlaev
    self-assigned this
    on Jul 4, 2022
  2. nikitavlaev
    added 2 commits that reference this issue on Jul 4, 2022

    Bring back test class generation (#403)

    dc4faf7

    Bring back test class generation (#403)

    43693fb
  3. alisevych
    added
    ctg-bugIssue is a bugIssue is a bug
    on Jul 5, 2022
  4. alexeyfridman
    added this to UTBot Javaon Jul 6, 2022
  5. alexeyfridman
    moved this to Todo in UTBot Javaon Jul 6, 2022
  6. rudolf101
    added a commit that references this issue on Jul 8, 2022

    Squashed commit of the following:

    bf2e0e7
  7. alisevych
    assigned
    mmvpm
    and unassigned
    nikitavlaev
    on Sep 7, 2022
  8. mmvpm
    moved this from Todo to In Progress in UTBot Javaon Sep 26, 2022
  9. alisevych commented on Sep 26, 2022

    @alisevych
    alisevych
    on Sep 26, 2022
    Member
    More actions

    Closing as not reproducing

  10. alisevych
    closed this as not plannedon Sep 26, 2022
  11. Repository owner moved this from In Progress to Done in UTBot Javaon Sep 26, 2022
  12. alisevych
    added
    status-wont-fixThis will not be worked onThis will not be worked on
    on Sep 26, 2022
  13. alisevych
    self-assigned this
    on Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @alisevych
    alisevych
  • @mmvpm
    mmvpm

Labels

ctg-bugIssue is a bugIssue is a bugstatus-wont-fixThis will not be worked onThis will not be worked on

Type

No type

Projects

  • UTBot Java
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.