Skip to content

Conversation

@rszwajko
Copy link
Member

Generate tests for all types in kubevirt/models

Generated with claude-4.5-opus-high.

Create an object of type V1ACPI and provide all properties.
Do not test conversion functions V1ACPIFromJSON and V1ACPIToJSON.

Signed-off-by: Radoslaw Szwajkowski <[email protected]>
Use V1ACPI test as an example.
Generated with claude-4.5-opus-high.

Signed-off-by: Radoslaw Szwajkowski <[email protected]>
@coderabbitai
Copy link

coderabbitai bot commented Jan 27, 2026

Important

Review skipped

Too many files!

This PR contains 300 files, which is 150 over the limit of 150.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

🧪 Unit Test Generation v2 is now available!

We have significantly improved our unit test generation capabilities.

To enable: Add this to your .coderabbit.yaml configuration:

reviews:
  finishing_touches:
    unit_tests:
      enabled: true

Try it out by using the @coderabbitai generate unit tests command on your code files or under ✨ Finishing Touches on the walkthrough!

Have feedback? Share your thoughts on our Discord thread!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@kubevirt-ui-bot
Copy link

Hi, welcome to kubevirt ui, thank you this pull request 💖✨

@rszwajko rszwajko changed the title CNV-55151: Test generated kubevirt types CNV-77466: Test generated kubevirt types Jan 27, 2026
@rszwajko rszwajko marked this pull request as ready for review January 27, 2026 16:38
@rszwajko rszwajko requested a review from upalatucci January 27, 2026 16:38
Use the tests for V1AcceessCredential and V1ACPI as examples.
Generated with claude-4.5-opus-high.

Signed-off-by: Radoslaw Szwajkowski <[email protected]>
@rszwajko rszwajko merged commit 2c44866 into kubevirt-ui:main Feb 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants