testfx icon indicating copy to clipboard operation
testfx copied to clipboard

[Analyzer suggestion]: Duplicate test methods

Open Youssef1313 opened this issue 2 months ago • 2 comments

I have seen it few times that test methods get copied without changes, unintentionally.

I think it might be a good idea to try to implement something for detecting duplicate test methods where only the method name differs, possibly only in the same test class for perf reasons.

Youssef1313 avatar Oct 28 '25 13:10 Youssef1313

We can even do some ressemblance matching by removing name of the variables

Evangelink avatar Oct 28 '25 14:10 Evangelink

@Youssef1313 pls can you assign this to me.. also I wanted to ask, is there going to be a fixer implementation to rename the test method after detecting for duplicate tests? or just simply detecting duplicate methods?

AtolagbeMuiz avatar Nov 12 '25 22:11 AtolagbeMuiz