-
Notifications
You must be signed in to change notification settings - Fork 237
feat: add automatically generated test index #3078
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
Conversation
Signed-off-by: xstefank <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds an automatically generated test index documentation file that catalogs all integration tests annotated with @Sample in the codebase. The file is generated during the Maven build process (specifically during the process-test-classes phase) and provides comprehensive documentation for developers looking to understand available test samples and use cases.
The PR description indicates uncertainty about whether this generated file should be version controlled or added to .gitignore, presenting it as an "either/or" decision to prevent uncommitted generated files from remaining after builds.
Key Changes
- Adds comprehensive test index documentation with 1,252 lines covering 116 integration tests
- Organizes tests into three main categories: Base API (61 tests), Dependent Resources (45 tests), and Workflows (10 tests)
- Provides descriptions, links to source code, and categorized navigation for each test sample
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
|
|
||
| --- | ||
|
|
||
| ## WorkflowActivationConditionIT |
Copilot
AI
Dec 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate heading ID: There are two test classes with the same name WorkflowActivationConditionIT (lines 1132 and 1187), which will generate the same anchor link #workflowactivationconditionit. This causes the table of contents links on lines 111 and 116 to both point to the first occurrence (line 1132) instead of their respective sections.
The second occurrence is from package io.javaoperatorsdk.operator.workflow.workflowactivationcondition while the first is from io.javaoperatorsdk.operator.workflow.getnonactivesecondary. Consider differentiating these headings or modifying the test class names to avoid this collision.
| ## WorkflowActivationConditionIT | |
| ## WorkflowActivationConditionIT (workflowactivationcondition) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is something that should probably be addressed in the generator. /cc @csviri
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx will take a look
|
pls add it to the git ignore, I don't think we should store generated sources, we don't do it anywhere |
|
Replaced by #3079 |
@csviri I'm not sure if this file should be version controlled but we should not generate files that are stuck after the build it finished. So either this or I will add it to .gitignore :).