Skip to content

Test Method Run annotation action break on test method position change #2

Open
@albilu

Description

@albilu

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions