netbeansPython icon indicating copy to clipboard operation
netbeansPython copied to clipboard

Test Method Run annotation action break on test method position change

Open albilu opened this issue 1 year ago • 0 comments

Describe the bug When test file is opened all Test methods are annotated with a working Run Action But when the file is updated (methods position in the file changes) the annotated lines are well updated but the action is not working anymore.

This implementation was inspire from https://github.com/apache/netbeans/blob/224d4675ce6abcfdb51db3515bbe8e10d8d5ca3a/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/api/TestMethodController.java#L48

Point to start investigation: https://github.com/albilu/netbeansPython/blob/master/src/main/java/org/netbeans/modules/python/testrunner/PythonTestMethodController.java#L59

https://github.com/albilu/netbeansPython/blob/master/src/main/java/org/netbeans/modules/python/testrunner/PythonTestGlyphAction.java#L95

albilu avatar Apr 05 '23 13:04 albilu