Skip to content

ClassNotFoundException thrown if build fails #1100

@volivan239

Description

@volivan239
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

Activity

added
ctg-bugIssue is a bug
comp-uiImprovements of plugin UI appearence and functionality
on Oct 5, 2022
self-assigned this
on Oct 5, 2022
moved this to Todo in UTBot Javaon Oct 5, 2022
alisevych

alisevych commented on Oct 5, 2022

@alisevych
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.
Repository owner moved this from Todo to Done in UTBot Javaon Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-bugIssue is a bug

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

    Participants

    @alisevych@volivan239

    Issue actions

      ClassNotFoundException thrown if build fails · Issue #1100 · UnitTestBot/UTBotJava