Skip to content

Cannot save test generation report in case of Timeout #1834

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
EgorkaKulikov opened this issue Feb 21, 2023 · 1 comment · Fixed by #1858
Closed

Cannot save test generation report in case of Timeout #1834

EgorkaKulikov opened this issue Feb 21, 2023 · 1 comment · Fixed by #1858
Assignees
Labels
comp-codegen Issue is related to code generator ctg-bug Issue is a bug

Comments

@EgorkaKulikov
Copy link
Collaborator

EgorkaKulikov commented Feb 21, 2023

Description

Sometimes tests generation fails with timeout. Test report genaration must work correctly anyway.

To Reproduce

Generate tests for the following code snippet:

public class A {

    public int hangForSeconds(int seconds) {
        for (int i = 0; i < seconds; i++) {
                Thread.sleep(1000);
        }
        return seconds;
    }
}

Visual proofs (screenshots, logs, images)

image

Additional context

See bug #1098 - it is a similar, but different issue
May be it's fix will be helpful.

@sofurihafe
Copy link
Member

I have this popup when I generate tests for Spring project.
And I think it's due to zero(?) spring report support, not to timeouts.

@alisevych alisevych added the comp-sarif Issue is related to SARIF report or Problems tab label Feb 21, 2023
@EgorkaKulikov EgorkaKulikov added comp-codegen Issue is related to code generator and removed comp-sarif Issue is related to SARIF report or Problems tab labels Feb 21, 2023
@github-project-automation github-project-automation bot moved this from Todo to Done in UTBot Java Feb 27, 2023
@EgorkaKulikov EgorkaKulikov linked a pull request Feb 27, 2023 that will close this issue
6 tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
comp-codegen Issue is related to code generator ctg-bug Issue is a bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants