Closed
Description
Description
When generate a test case if unexpected error occurs for a single method it cancels test generation for whole class.
To Reproduce
- IntelliJ IDEA 2022.1.4 with installed plugin is opened.
- Go to File -> Settings -> Tools -> UtBot
- Set Code analysis slider somewhere in the middle.
- Set Mock strategy to Other packages: Mockito, click OK
- Add a class with the following code
public String property(String key) {
return System.getProperty(key);
}
- Generate tests for it with Mock strategy for Other packages / classes
Expected behavior
The bad test attempts should be passed (but logged) to recognize the problem, but not breaking the output.
Actual behavior
No test generated if symbolic engine is on.
Additional context
The symbolic execution fails for this test after #622 is implemented.
If only fuzzing works the test set is generated normally.
Metadata
Metadata
Assignees
Type
Projects
Status
Done