Skip to content

Add test coverage (currently 0%) #5

@rawkode

Description

@rawkode

The codebase has zero tests — no #[cfg(test)] modules, no tests/ directory, no test fixtures. CI runs cargo test vacuously. The most complex modules (schema.rs at 761 lines and generate.rs at 478 lines) handle recursive OpenAPI schema parsing and YAML generation with no regression protection.

Recommended approach:

  • Unit tests for v2_parse_resource, v3_parse_resource, find_definition_key, filter_fields, is_commonly_needed, and the YamlNode emitter
  • Snapshot/golden tests with fixture JSON schemas from real clusters
  • Integration tests that mock the kube API server responses

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions