ogoron generate
Purpose
Use ogoron generate to create test assets and supporting artifacts.
Subcommands
ogoron generate unit-tests --module <Name>— generate unit tests for a specific module areaogoron generate api-tests --entry <Query>— generate integration API tests from a free-form entrypoints queryogoron generate test-cases --by-text <Text>/--file <Path>— generate human-readable test cases from a descriptionogoron generate autotests— generate executable tests based on previously generated test cases
Outputs
Depending on the subcommand, Ogoron writes:
- human-friendly artifacts under
.ogoron/for-human/ - merge-friendly registries under
.ogoron/keep-git/ - generated tests into your repository according to
.ogoron/configs/
Examples
# Unit tests
ogoron generate unit-tests --module UserService --description "Authentication and authorization"
# API tests
ogoron generate api-tests --entry "GET /api/spots" --description "AuthZ + pagination"
# UI: test cases → autotests
ogoron generate test-cases --by-text "Describe the feature and what must be tested"
ogoron generate autotests
Notes
- Run analysis before generation workflows (see
ogoron analyze business). ogoron generate test-casescan be used from a git diff scope or from a free-form description, depending on the flags used.ogoron generate autotestsexpects previously generated test cases to exist in the workspace.- Use
ogoron generate --helpto list all available subcommands and options.