-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Enhance Test for kubebuilder alpha generate Command #4508
Comments
/assign |
In this case, what we probably want is:
Example # Example shell script logic
for dir in testdata/*; do
# Call alpha-generate to validate the re-generation of all samples
$kb alpha generate
done
Example test-alpha-generate:
./test/alpha-generate.sh
Example name: Test Alpha Generate
on:
push:
paths:
- 'pkg/cli/alpha/**'
- 'test/alpha-generate.sh'
- '.github/workflows/alpha-generate.yml'
pull_request:
paths:
- 'pkg/cli/alpha/**'
- 'test/**'
- '.github/workflows/**'
jobs:
test-alpha-generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Run test-alpha-generate
run: make test-alpha-generate
``` |
sorry @camilamacedo86 if there is a no show, can I take this up now? |
@sbin64 I am working on this. |
Any update will be great. |
@camilamacedo86 I am able to run tests using my IDE. But I think some part of the text in the main ticket is missing, as in here:
This enhancement aims to do what? Could you please elaborate? |
For this one, we can do the shell script: #4508 (comment) . That seems the best approach for now. If we be able to do that it will be great 🎉 |
/assign |
What do you want to happen?
We need to enhance the testing of the
kubebuilder alpha generate
command. For further information see: https://book.kubebuilder.io/reference/rescaffoldNote that under the testdata we scaffold samples:
The goal here is to validate its functionality for all samples under testdata. A shell script solution is acceptable for this purpose, but if a better approach using Go tests (leveraging the existing test framework) can be implemented to validate the PROJECT file content, it would be preferable. Currently, the command is tested under: e2e/alphagenerate. This enhancement aims to:
Therfore what we need to do is:
Extra Labels
No response
The text was updated successfully, but these errors were encountered: