arieslab / jnose

JNose - Java TestSmells Detection
GNU General Public License v3.0
20 stars 8 forks source link

Fix test smell detection: Ignored Test #5

Closed danielevalverde closed 4 years ago

danielevalverde commented 4 years ago

Definition: conditional Test Logic (CTL) JUnit 4 provides developers with the ability to suppress test methods from running. However, these ignored test methods result in overhead since they add unnecessary overhead with regards to compilation time, and increases code complexity and comprehension.

Detection:A test method or class that contains the @Ignore annotation.

BUG test whit this annotation: @ignore, is not being identified as a test smell

example:

@Ignore("testing ignored test") public void ignored_test() { }

To reproduce: you can Run Jnose on this project and verify the output

https://github.com/danielevalverde/jnose-tests