Skip to content

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

Open

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

Activity

  1. assigned and unassigned on Apr 5, 2023
  2. changed the title [-]Test Method Run annotation position change break action[/-] [+]Test Method Run annotation action broke on test method position change[/+] on Apr 10, 2023
  3. changed the title [-]Test Method Run annotation action broke on test method position change[/-] [+]Test Method Run annotation action break on test method position change[/+] on Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions