Skip to content

Fuzzing breaks on nested classes #1537#1552

Merged
Markoutte merged 1 commit into
mainfrom
pelevin/1537_Fuzzing_breaks_on_nested_classes
Dec 19, 2022
Merged

Fuzzing breaks on nested classes #1537#1552
Markoutte merged 1 commit into
mainfrom
pelevin/1537_Fuzzing_breaks_on_nested_classes

Conversation

@Markoutte

Copy link
Copy Markdown
Collaborator

Description

When fuzzing cannot create any value for the given type it finds then the exception "unknown type" is thrown. Because of this whole flow is canceled. With this PR runFuzzing processes any exception from fuzzing and logs it. Also, additional logs are added about fuzzing phases (#1122)

Fixes #1537

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Automated Testing

New test is added for the example from the issue:

org.utbot.fuzzing.JavaFuzzingTest#fuzzing doesn't throw an exception when type is unknown

Manual Scenario

Set symbolic/fuzzing ratio as 95/5 and run test generation for an example from the issue. 2 tests from symbolic should be generated. In the logs should be an entry like this:

08:21:16.711 | INFO  | JavaLanguage              | Fuzzing is stopped because of an error
java.lang.IllegalStateException: Unknown type: FuzzedType(classId=com.company.issues.DeepNested$Nested1$Nested2, generics=[])

Checklist:

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

@Markoutte Markoutte merged commit 59cf7b4 into main Dec 19, 2022
@Markoutte Markoutte deleted the pelevin/1537_Fuzzing_breaks_on_nested_classes branch December 19, 2022 07:47
Markoutte added a commit that referenced this pull request Dec 20, 2022
@alisevych alisevych modified the milestone: 2023.03 Release Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fuzzing breaks on nested classes

4 participants