cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

Detected duplicate tests

Open AndreasArvidsson opened this issue 1 year ago • 4 comments

Sometimes I'm unsure if it tests already exist and I add another one. It would be beneficial if we could detect this duplication.

For our yaml tests we could the check that the command and initial state were the same

  • Bonus points if we could normalize setSelection and clearAndSetSelection actions to see we have a cross duplication here

For our scope tests just check that we are testing the same scope facet with the same document content

AndreasArvidsson avatar Jul 02 '24 22:07 AndreasArvidsson

Sorry can you elaborate? Not sure I'm following

pokey avatar Jul 03 '24 07:07 pokey

I elaborated on my description in the original post. Better?

AndreasArvidsson avatar Jul 03 '24 08:07 AndreasArvidsson

Makes more sense. Seems unlikely exact duplicate check would catch much tho?

pokey avatar Jul 03 '24 11:07 pokey

Probably not, but would be nice to catch them if we have duplication.

AndreasArvidsson avatar Jul 03 '24 11:07 AndreasArvidsson