Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation from YAML test file to JUnit/TestNG test method #25

Closed
picimako opened this issue Feb 10, 2024 · 1 comment
Closed

Navigation from YAML test file to JUnit/TestNG test method #25

picimako opened this issue Feb 10, 2024 · 1 comment
Assignees
Labels
feature A completely new feature YAML DSL Related to the Citrus YAML test DSL
Milestone

Comments

@picimako
Copy link
Owner

Summary

There is already some support on JUnit/TestNG methods to navigate to non-Java DSL test source files. The inverse could be supported as well.

Tasks

  • Implement an action that would navigate from a YAML test file to its corresponding JUnit/TestNG method.
  • The action could be assigned the Ctrl+Shift+T (on Windows) shortcut, the same one can navigate back and forth between source and test files in Java code.
  • Take into account if there are more than one JUnit/TestNG method covering the YAML file. In that case show a list of the matching methods, so that users can select which one to navigate to.
    • NOTE: this may also help uncover that a YAML test is executed multiple times by multiple methods.
  • The action would work only for files that are actual Citrus YAML tests.
    • For this, all @CitrusTestSource annotations in the project must be examined and indexed in some way, so that they can be properly matched to YAML files.

Scope

  • Only the YAML DSL is in scope for this issue. XML and Groovy DSLs will be handled in separate issues.
@picimako picimako added feature A completely new feature YAML DSL Related to the Citrus YAML test DSL labels Feb 10, 2024
@picimako picimako self-assigned this Feb 12, 2024
@picimako picimako added this to the v1.0.7 milestone Mar 20, 2024
@picimako
Copy link
Owner Author

Completed in v1.0.7.

yaml_navigate_to_java_test_method_multiple_methods_selection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A completely new feature YAML DSL Related to the Citrus YAML test DSL
Projects
None yet
Development

No branches or pull requests

1 participant