Skip to main content

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 area
  • ogoron generate api-tests --entry <Query> — generate integration API tests from a free-form entrypoints query
  • ogoron generate test-cases --by-text <Text> / --file <Path> — generate human-readable test cases from a description
  • ogoron 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-cases can be used from a git diff scope or from a free-form description, depending on the flags used.
  • ogoron generate autotests expects previously generated test cases to exist in the workspace.
  • Use ogoron generate --help to list all available subcommands and options.