TestSmells / TestSmellDetector

A tool to detect test smells in Java projects that utilize JUnit as the testing framework
https://testsmells.github.io/
GNU General Public License v3.0
73 stars 39 forks source link

Once found "true", never goes "false" #19

Open Teej42 opened 2 years ago

Teej42 commented 2 years ago

Run this using attached file on ftp-server 1.0.6. One example - Print Statement - returns True correctly for clienttests/SymbolicLinkTest.java, but remains True even right after that with no print statement - clienttests/ListPassiveTest.java. This behavior is observed on many code smell categories, indicating that clearing of status is not properly done.

Output_TestSmellDetection_1647781715304.csv

Teej42 commented 2 years ago

Issue is present in Sensitive Equality.

Teej42 commented 2 years ago

Issue is present in Sleepy Test.

Teej42 commented 2 years ago

Issue is present in Duplicate Assert.

Teej42 commented 2 years ago

Basically ALL of the code smell categories have this bug.

effendiian commented 2 years ago

I was able to replicate the same issue. Tested on a forked branch of RxJava: https://github.com/rimij405/RxJava

Output_TestSmellDetection_1648526004884.csv