UnitTestBot / UTBotJava

Automated unit test generation and precise code analysis for Java
Apache License 2.0
133 stars 39 forks source link

No assertions in some generated tests for guava #1693

Open sofurihafe opened 1 year ago

sofurihafe commented 1 year ago

Description

Some methods in the generated tests have no assertions.

To Reproduce

  1. Run contest estimator with the following settings:
    
    timelimit = 160

methodFilter = "com.google.common.collect.FilteredEntryMultimap.*" projectFilter = listOf("guava")



2. Check generated test methods like *testMethod*, *testRemoveAll* and *testCreateKeySet*, etc.

**Expected behavior**

Test methods should contain assertions.

**Actual behavior**

No assertions are being generated.

![image](https://user-images.githubusercontent.com/54685068/212961097-0189c981-10b1-45fb-bee7-8fb478961a14.png)
![image](https://user-images.githubusercontent.com/54685068/212961171-5b2cdd2a-aa2c-479e-bf57-fd12e869e135.png)
EgorkaKulikov commented 1 year ago

Not so easy problem, fix should be designed and applied only after the Contest.