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

ClassNotFoundException thrown if build fails #1100

Closed
volivan239 opened this issue Oct 5, 2022 · 1 comment · Fixed by #1103
Closed

ClassNotFoundException thrown if build fails #1100

volivan239 opened this issue Oct 5, 2022 · 1 comment · Fixed by #1103
Assignees
Labels
comp-ui Improvements of plugin UI appearence and functionality ctg-bug Issue is a bug

Comments

@volivan239
Copy link
Collaborator

Description

If we launch action on project that is not-compilable, UTBot will continue test generation after failed build and throw an exception.

To Reproduce

  1. Create a class that can't be compiled.
  2. Launch action on it

Expected behavior

Action ends after build failure

Actual behavior

Exception is thrown in IDEA.

Additional context

This bug may also impact behavior in #1081

@volivan239 volivan239 added ctg-bug Issue is a bug comp-ui Improvements of plugin UI appearence and functionality labels Oct 5, 2022
@volivan239 volivan239 self-assigned this Oct 5, 2022
@korifey korifey moved this to Todo in UTBot Java Oct 5, 2022
@alisevych
Copy link
Member

Additional context

I would also add the following test scenario for the future fix:

  1. Create a class that can't be compiled.
  2. Create a class that calls a method of the first class.
  3. Launch action on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-ui Improvements of plugin UI appearence and functionality ctg-bug Issue is a bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants