Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Only one of generated tests is run with Generate and Run #1149

Closed
Tracked by #1187
alisevych opened this issue Oct 13, 2022 · 2 comments · Fixed by #1177 or #1206
Closed
Tracked by #1187

Only one of generated tests is run with Generate and Run #1149

alisevych opened this issue Oct 13, 2022 · 2 comments · Fixed by #1177 or #1206
Assignees
Labels
ctg-bug Issue is a bug

Comments

@alisevych
Copy link
Member

Description

Several classes from one package are being processed by UnitTestBot plugin.
Several test classes are generated.
But there is only one test class being run.

To Reproduce

  1. Run the 'UTBotJava' project in IntelliJ Idea
  2. UnitTestBot plugin is installed - RC build
  3. In Project view find utbot-sample/src/main/java/org/utbot/examples/primitives
  4. Right-click on primitives package, select Generate tests with UnitTestBot...
  5. Several classes are selected in Members list
  6. Generate and Run
  7. Check coverage after the test generation and run finishes.

Expected behavior

All generated tests should be run.

Actual behavior

Only one generated test class is run.

Visual proofs (screenshots, logs, images)

image

image

image

Environment

WINDOWS 10 Pro
IntelliJ IDEA 2022.2.3 (Oct 5)

Additional context

Same with IntelliJ project - JDK 17
Will check on other versions of IDEA

@alisevych
Copy link
Member Author

alisevych commented Oct 13, 2022

Reproducing on RC with last fixes for empty test class generation.
And was not reproducing on build from main Oct-10
@ideaseeker could you please check whether it can be fixed?

@alisevych
Copy link
Member Author

@Vassiliy-Kudryashov Vassiliy-Kudryashov moved this from Todo to In Progress in UTBot Java Oct 17, 2022
Vassiliy-Kudryashov added a commit that referenced this issue Oct 19, 2022
EgorkaKulikov pushed a commit that referenced this issue Oct 19, 2022
* Only one of generated tests is run with Generate and Run #1149

* Only one of generated tests is run with Generate and Run #1149

Refactoring and comments
Repository owner moved this from In Progress to Done in UTBot Java Oct 19, 2022
Vassiliy-Kudryashov added a commit that referenced this issue Oct 20, 2022
Vassiliy-Kudryashov added a commit that referenced this issue Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctg-bug Issue is a bug
Projects
Archived in project
3 participants