Skip to content

Simultaneous test generation crashes one of them #919

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
Domonion opened this issue Sep 13, 2022 · 0 comments · Fixed by #1164
Closed

Simultaneous test generation crashes one of them #919

Domonion opened this issue Sep 13, 2022 · 0 comments · Fixed by #1164
Assignees
Labels
ctg-bug Issue is a bug

Comments

@Domonion
Copy link
Collaborator

Description

In IDEA it is possible to run multiple test generation processes simultaneously. Only one succeedes and it is unpredictable which one.

To Reproduce

Steps to reproduce the behavior:

  1. Create empty console project with Java 8/11
  2. Create file RandomClass.kt with following content:
class RandomClass {
    fun functionToTest(a: Int, b: Double): String {
        val c = 100 / a + b
        return c.toString()
    }
}
  1. Create file DateExample.kt with following content:
import java.util.*

class DateExample {
    fun getTime(date: Date): Boolean {
        return date.time == 100L
    }
}
  1. Open each file in separate editor instance
  2. Generate test for each with Alt+Shift+U shortcut

Expected behavior

Tests are supposed to be generated.

Actual behavior

Only one test is generated, another one shows following error:

Visual proofs (screenshots, logs, images)

java_hyoQnboBEE.mp4

Additional context

  1. Only 1 error log file is created, so it means that in case of simultaneous generation one of processes does not even reach concrete executor
  2. idea.log does not contain nor exceptions nor useful information

Files
Project - untitled.zip

@Domonion Domonion added the ctg-bug Issue is a bug label Sep 13, 2022
@korifey korifey moved this to Todo in UTBot Java Sep 13, 2022
@Vassiliy-Kudryashov Vassiliy-Kudryashov moved this from Todo to In Progress in UTBot Java Oct 7, 2022
Vassiliy-Kudryashov added a commit that referenced this issue Oct 17, 2022
…hem (#1164)

Simultaneous test generation crashes one of them #919
Repository owner moved this from In Progress to Done in UTBot Java Oct 17, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
ctg-bug Issue is a bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants