Skip to content

Generate Docs from Integration Test #2953

@csviri

Description

@csviri

Java Operator SDK implements an integration test(s) for every feature. To make them more visible / discoverable to the users we could generate a sample index page into the documentation.

The idea would be to provide an annotation, like:

@Sample(tldr="Usage of PrimaryToSecondaryMapper", descrption="Showcases the usage of PrimaryToSecondaryMapper, in what situation it needs to be used and how to optimize typical uses with Informer indexes." )
class PrimaryToSecondaryIT {
  // details omitted
}

We would collect those test which are annotated, and generate a mardown page for the website:

[Usage of PrimaryToSecondaryMapper"](https://github.com/operator-framework/java-operator-sdk/blob/main/operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/primarytosecondary/PrimaryToSecondaryIT.java)

Showcases the usage of PrimaryToSecondaryMapper, in what situation it needs to be used and how to optimize typical uses with Informer indexes.

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions